Wake up RigidBody 2D after applying torque
(cherry picked from commit 8335f00949
)
This commit is contained in:
parent
808865af97
commit
d2636cd30f
@ -898,6 +898,7 @@ void Physics2DServerSW::body_apply_torque_impulse(RID p_body, real_t p_torque) {
|
||||
_update_shapes();
|
||||
|
||||
body->apply_torque_impulse(p_torque);
|
||||
body->wakeup();
|
||||
}
|
||||
|
||||
void Physics2DServerSW::body_apply_impulse(RID p_body, const Vector2 &p_pos, const Vector2 &p_impulse) {
|
||||
|
Loading…
Reference in New Issue
Block a user