diff --git a/scene/3d/physics_body.cpp b/scene/3d/physics_body.cpp index aa229333c..1cbea7445 100644 --- a/scene/3d/physics_body.cpp +++ b/scene/3d/physics_body.cpp @@ -105,6 +105,10 @@ PhysicsBody::PhysicsBody(PhysicsServer::BodyMode p_mode) : CollisionObject(RID_PRIME(PhysicsServer::get_singleton()->body_create(p_mode)), false) { } +PhysicsBody::~PhysicsBody() { + +} + #ifndef DISABLE_DEPRECATED void StaticBody::set_friction(real_t p_friction) { if (p_friction == 1.0 && physics_material_override.is_null()) { // default value, don't create an override for that @@ -1612,6 +1616,10 @@ KinematicCollision::KinematicCollision() { owner = nullptr; } +KinematicCollision::~KinematicCollision() { + +} + /////////////////////////////////////// bool PhysicalBone::JointData::_set(const StringName &p_name, const Variant &p_value, RID j) { diff --git a/scene/3d/physics_body.h b/scene/3d/physics_body.h index cd354b9dc..94285cf4c 100644 --- a/scene/3d/physics_body.h +++ b/scene/3d/physics_body.h @@ -49,6 +49,7 @@ protected: static void _bind_methods(); void _notification(int p_what); PhysicsBody(PhysicsServer::BodyMode p_mode); + ~PhysicsBody(); public: virtual Vector3 get_linear_velocity() const; @@ -379,6 +380,7 @@ public: Variant get_collider_metadata() const; KinematicCollision(); + ~KinematicCollision(); }; class PhysicalBone : public PhysicsBody {