Physics3D: Ensure RigidBody are destroyed on world destruction

This commit is contained in:
Jérôme Leclercq
2021-11-30 18:17:53 +01:00
parent 2d236afe0f
commit f289d13101
5 changed files with 24 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ namespace Nz
private:
static void OnConstruct(entt::registry& registry, entt::entity entity);
entt::registry& m_registry;
entt::connection m_constructConnection;
PhysWorld3D m_physWorld;
};