Merge pull request #40941 from Sauermann/TorqueWakeup
Wake up RigidBody 2D after applying torque
This commit is contained in:
commit
326b471fc3
|
@ -821,6 +821,7 @@ void PhysicsServer2DSW::body_apply_torque_impulse(RID p_body, real_t p_torque) {
|
|||
_update_shapes();
|
||||
|
||||
body->apply_torque_impulse(p_torque);
|
||||
body->wakeup();
|
||||
}
|
||||
|
||||
void PhysicsServer2DSW::body_apply_impulse(RID p_body, const Vector2 &p_impulse, const Vector2 &p_position) {
|
||||
|
|
Loading…
Reference in New Issue