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

@@ -14,6 +14,8 @@ namespace Nz
{
class NAZARA_PHYSICS3D_API RigidBody3DComponent : public RigidBody3D
{
friend class Physics3DSystem;
public:
using RigidBody3D::RigidBody3D;
RigidBody3DComponent(const RigidBody3DComponent&) = default;