diff options
author | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2020-08-01 14:36:24 +0200 |
---|---|---|
committer | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2020-08-01 14:36:24 +0200 |
commit | 8335f009490a8d282c4feb68a35663857e341401 (patch) | |
tree | 432a978412fb3fd3b6f74544d5f1b8ebe208a3aa | |
parent | ec9302ceccb75f44038db3695d2f9e7c82cfe951 (diff) |
Wake up RigidBody 2D after applying torque
-rw-r--r-- | servers/physics_2d/physics_server_2d_sw.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/physics_2d/physics_server_2d_sw.cpp b/servers/physics_2d/physics_server_2d_sw.cpp index 1ed1ba6958..ffdaab0d92 100644 --- a/servers/physics_2d/physics_server_2d_sw.cpp +++ b/servers/physics_2d/physics_server_2d_sw.cpp @@ -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) { |