This commit is contained in:
WiseNoodle
2025-08-10 22:05:50 -04:00
parent 3d44cc7761
commit 5807549863

View File

@@ -67,8 +67,7 @@ func _input(event):
if is_multiplayer_authority(): if is_multiplayer_authority():
if event is InputEventMouseMotion: if event is InputEventMouseMotion:
# Rotate the CharacterBody3D around the Y-axis for horizontal look # Rotate the CharacterBody3D around the Y-axis for horizontal look
#rotate_y(-event.relative.x * mouse_sensitivity) rotate_y(-event.relative.x * mouse_sensitivity)
head.rotate_y(-event.relative.x * mouse_sensitivity)
# Rotate the Camera3D around its local X-axis for vertical look # Rotate the Camera3D around its local X-axis for vertical look
var change = -event.relative.y * mouse_sensitivity var change = -event.relative.y * mouse_sensitivity