diff --git a/modules/bullet/space_bullet.cpp b/modules/bullet/space_bullet.cpp index ec9db926f0b..6444c6e3c22 100644 --- a/modules/bullet/space_bullet.cpp +++ b/modules/bullet/space_bullet.cpp @@ -179,6 +179,7 @@ bool BulletPhysicsDirectSpaceState::cast_motion(const RID &p_shape, const Transf bt_xform_to.getOrigin() += bt_motion; if ((bt_xform_to.getOrigin() - bt_xform_from.getOrigin()).fuzzyZero()) { + bulletdelete(btShape); return false; }