Moved calculation to save as a variable for testing
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user