init_kinematic_utilities from the start for kinematic bodies

This commit is contained in:
BimDav 2021-09-27 09:58:26 +02:00
parent 112985c5bc
commit 3540e716f9

View file

@ -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;