expose removeCollisionComponent

This commit is contained in:
Nick Fisher
2024-03-05 10:30:42 +08:00
parent 32fe5d9083
commit 39fa9387e6
5 changed files with 35 additions and 12 deletions

View File

@@ -931,6 +931,13 @@ external void add_collision_component(
bool affectsCollidingTransform,
);
@ffi.Native<ffi.Void Function(ffi.Pointer<ffi.Void>, EntityId)>(
symbol: 'remove_collision_component', assetId: 'flutter_filament_plugin')
external void remove_collision_component(
ffi.Pointer<ffi.Void> sceneManager,
int entityId,
);
@ffi.Native<ffi.Void Function(ffi.Pointer<ffi.Void>, EntityId)>(
symbol: 'add_animation_component', assetId: 'flutter_filament_plugin')
external void add_animation_component(