removeEntity method

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

Removes/destroys the specified entity from the scene. entity will no longer be a valid handle after this method is called; ensure you immediately discard all references once this method is complete.

Implementation

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