From 2f5661cf8fb818e472f43591b915087d412f48c2 Mon Sep 17 00:00:00 2001 From: Willow Behar <2364126-TechRunner@users.noreply.gitlab.com> Date: Thu, 9 May 2024 18:45:29 -0500 Subject: [PATCH] Moved calculation to save as a variable for testing --- Assets/scripts/Head.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/scripts/Head.gd b/Assets/scripts/Head.gd index a90be72..d184d9d 100644 --- a/Assets/scripts/Head.gd +++ b/Assets/scripts/Head.gd @@ -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)