init_kinematic_utilities from the start for kinematic bodies
This commit is contained in:
parent
112985c5bc
commit
3540e716f9
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue