summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2020-08-01 14:36:24 +0200
committerMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2020-08-01 14:36:24 +0200
commit8335f009490a8d282c4feb68a35663857e341401 (patch)
tree432a978412fb3fd3b6f74544d5f1b8ebe208a3aa
parentec9302ceccb75f44038db3695d2f9e7c82cfe951 (diff)
Wake up RigidBody 2D after applying torque
-rw-r--r--servers/physics_2d/physics_server_2d_sw.cpp1
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) {