Преглед на файлове

Fix rotation clamp bug

Due to rotatino below 0 degrees going up to 270.
DricomDragon преди 5 години
родител
ревизия
dfd46a8401
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Player.gd

+ 1 - 1
Player.gd

@@ -58,7 +58,7 @@ func _physics_process(delta):
 			if dire < 0:
 				dire = 3
 
-			tween.rotate_char(self, DEG_LIST[dire])
+			tween.rotate_char(self, rotation_degrees - 90)
 			is_moving = true
 
 	elif Input.is_action_pressed("ui_right"):