queueRotationUpdate method

  1. @override
Future queueRotationUpdate(
  1. ThermionEntity entity,
  2. double rads,
  3. double x,
  4. double y,
  5. double z, {
  6. bool relative = false,
})
override

Queues an update to the worldspace rotation for entity. The actual update will occur on the next frame, and will be subject to collision detection.

Implementation

@override
Future queueRotationUpdate(
    ThermionEntity entity, double rads, double x, double y, double z,
    {bool relative = false}) async {
  _module.ccall(
      "queue_rotation_update",
      "void",
      [
        "void*".toJS,
        "int".toJS,
        "float".toJS,
        "float".toJS,
        "float".toJS,
        "float".toJS,
        "bool".toJS
      ].toJS,
      [
        _sceneManager!,
        entity.toJS,
        rads.toJS,
        x.toJS,
        y.toJS,
        z.toJS,
        relative.toJS
      ].toJS,
      null);
}