فهرست منبع

:wrench: Apply thrust into the ship thrust direction

DricomDragon 1 سال پیش
والد
کامیت
05b63a2c9c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      godot/component/ships/ship.gd

+ 1 - 1
godot/component/ships/ship.gd

@@ -11,7 +11,7 @@ var current_torque : float = 0.0
 
 
 func _physics_process(delta):
-	apply_central_force(current_force)
+	apply_central_force(current_force.rotated(rotation))
 	apply_torque(current_torque)