Merge pull request #40941 from Sauermann/TorqueWakeup

Wake up RigidBody 2D after applying torque
This commit is contained in:
Rémi Verschelde 2020-08-11 19:02:47 +02:00 committed by GitHub
commit 326b471fc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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