소스 검색

Merge pull request #40941 from Sauermann/TorqueWakeup

Wake up RigidBody 2D after applying torque
Rémi Verschelde 5 년 전
부모
커밋
326b471fc3
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      servers/physics_2d/physics_server_2d_sw.cpp

+ 1 - 0
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) {