queuePositionUpdate method

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

Queues an update to the worldspace position for entity to {x,y,z}. The actual update will occur on the next frame, and will be subject to collision detection.

Implementation

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