Wake up RigidBody 2D after applying torque

(cherry picked from commit 8335f00949)
This commit is contained in:
Markus Sauermann 2020-08-01 14:36:24 +02:00 committed by Rémi Verschelde
parent 808865af97
commit d2636cd30f
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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) {