Moved calculation to save as a variable for testing

This commit is contained in:
Willow Behar
2024-05-09 18:45:29 -05:00
parent e20239108c
commit 2f5661cf8f

View File

@ -18,6 +18,6 @@ func _process(delta):
func _unhandled_input(event):
if event is InputEventMouseMotion:
self.rotate_x(-event.relative.y * vertical_mouse_sensitivity )
print(global_rotation_degrees.x)
var rotate_amount = -event.relative.y * vertical_mouse_sensitivity
self.rotate_x(rotate_amount)