setPosition method

  1. @override
Future setPosition(
  1. ThermionEntity entity,
  2. double x,
  3. double y,
  4. double z,
)
override

Directly sets the world space position for entity to the given coordinates, skipping all collision detection.

Implementation

@override
Future setPosition(
    ThermionEntity entity, double x, double y, double z) async {
  _module.ccall(
      "set_position",
      "void",
      ["void*".toJS, "int".toJS, "float".toJS, "float".toJS, "float".toJS]
          .toJS,
      [_sceneManager!, entity.toJS, x.toJS, y.toJS, z.toJS].toJS,
      null);
}