From 3540e716f9e20fe57e94d55f19a789c3b9a31b28 Mon Sep 17 00:00:00 2001 From: BimDav <67792882+BimDav@users.noreply.github.com> Date: Mon, 27 Sep 2021 09:58:26 +0200 Subject: init_kinematic_utilities from the start for kinematic bodies --- modules/bullet/rigid_body_bullet.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3