support collisions & restructure transforms to only update once per frame

This commit is contained in:
Nick Fisher
2024-02-13 13:31:18 +08:00
parent 6561af6825
commit 1638599078
8 changed files with 144 additions and 85 deletions

View File

@@ -536,4 +536,8 @@ extern "C"
{
free(ptr);
}
FLUTTER_PLUGIN_EXPORT void add_collision_component(void *const assetManager, EntityId entityId) {
((AssetManager*)assetManager)->addCollisionComponent(entityId);
}
}