From d4a89fcbc93ef92906f84bb5dcaee7b8a9026c6d Mon Sep 17 00:00:00 2001 From: Persephone Bubblegum-Holiday Date: Tue, 5 Aug 2025 22:42:31 -0700 Subject: [PATCH] absolute cinema --- Scripts/DebugMenu.gd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Scripts/DebugMenu.gd b/Scripts/DebugMenu.gd index dbb8895..5da5795 100644 --- a/Scripts/DebugMenu.gd +++ b/Scripts/DebugMenu.gd @@ -10,4 +10,8 @@ func _process(_delta: float) -> void: var pos = get_node("../").position var angle = get_node("../Camera").rotation_degrees $PositionLabel.text = "X: %.2f, Y: %.2f, Z: %.2f" % [ pos.x, pos.y, pos.z ] - $AngleLabel.text = "Pitch: %.2f, Yaw: %.2f" % [ angle.x, angle.y ] + var outy = fmod(angle.y, 360) + if (outy < 0): outy += 360 + var outx = fmod(angle.x, 360) + if (outx < 0): outx += 360 + $AngleLabel.text = "Pitch: %.2f, Yaw: %.2f" % [ outx, outy ]