Call activate function when setting RigidBodyBullet activation state.
This commit is contained in:
parent
1fed266bf5
commit
0539023fd4
|
@ -473,7 +473,7 @@ void RigidBodyBullet::assert_no_constraints() {
|
|||
|
||||
void RigidBodyBullet::set_activation_state(bool p_active) {
|
||||
if (p_active) {
|
||||
btBody->setActivationState(ACTIVE_TAG);
|
||||
btBody->activate();
|
||||
} else {
|
||||
btBody->setActivationState(WANTS_DEACTIVATION);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue