setRotationQuat method

  1. @override
Future setRotationQuat(
  1. ThermionEntity entity,
  2. Quaternion rotation
)
override

Sets the rotation for entity to the specified quaternion.

Implementation

@override
Future setRotationQuat(ThermionEntity entity, Quaternion rotation) async {
  _module.ccall(
      "set_rotation",
      "void",
      [
        "void*".toJS,
        "int".toJS,
        "float".toJS,
        "float".toJS,
        "float".toJS,
        "float".toJS
      ].toJS,
      [
        _sceneManager!,
        entity.toJS,
        rotation.radians.toJS,
        rotation.x.toJS,
        rotation.y.toJS,
        rotation.z.toJS,
        rotation.w.toJS
      ].toJS,
      null);
}