From d2636cd30f48075c8cc57edbbc83b139877fef51 Mon Sep 17 00:00:00 2001 From: Markus Sauermann <6299227+Sauermann@users.noreply.github.com> Date: Sat, 1 Aug 2020 14:36:24 +0200 Subject: [PATCH] Wake up RigidBody 2D after applying torque (cherry picked from commit 8335f009490a8d282c4feb68a35663857e341401) --- servers/physics_2d/physics_2d_server_sw.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/physics_2d/physics_2d_server_sw.cpp b/servers/physics_2d/physics_2d_server_sw.cpp index 809c5c40e06..be8e1a7a33d 100644 --- a/servers/physics_2d/physics_2d_server_sw.cpp +++ b/servers/physics_2d/physics_2d_server_sw.cpp @@ -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) {