summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBimDav <67792882+BimDav@users.noreply.github.com>2021-09-27 09:58:26 +0200
committerBimDav <67792882+BimDav@users.noreply.github.com>2021-09-27 09:58:26 +0200
commit3540e716f9e20fe57e94d55f19a789c3b9a31b28 (patch)
treea4d0780b14960c565a3a3b58840ff2a591bdcea9
parent112985c5bc2c9a3f58c4ee5c4a674beff8b75e58 (diff)
init_kinematic_utilities from the start for kinematic bodies
-rw-r--r--modules/bullet/rigid_body_bullet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/bullet/rigid_body_bullet.cpp b/modules/bullet/rigid_body_bullet.cpp
index 22e7b6fe64..b511c5f8d8 100644
--- a/modules/bullet/rigid_body_bullet.cpp
+++ b/modules/bullet/rigid_body_bullet.cpp
@@ -535,6 +535,7 @@ void RigidBodyBullet::set_mode(PhysicsServer3D::BodyMode p_mode) {
mode = PhysicsServer3D::BODY_MODE_KINEMATIC;
reload_axis_lock();
_internal_set_mass(0);
+ init_kinematic_utilities();
break;
case PhysicsServer3D::BODY_MODE_STATIC:
mode = PhysicsServer3D::BODY_MODE_STATIC;