resetBones method

  1. @override
Future resetBones(
  1. ThermionEntity entity
)
override

Resets all bones in the given entity to their rest pose. This should be done before every call to addBoneAnimation.

Implementation

@override
Future resetBones(ThermionEntity entity) async {
  _module.ccall("reset_to_rest_pose", "void", ["void*".toJS, "int".toJS].toJS,
      [_sceneManager!, entity.toJS].toJS, null);
}