You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Call activate function when setting RigidBodyBullet activation state.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user