From c44be3fbfb04b5ea7f4ecc08203dd98f02d160c5 Mon Sep 17 00:00:00 2001 From: Zakarya Date: Tue, 28 May 2024 20:24:53 -0700 Subject: [PATCH] Only reset vertical head rotation --- addons/fpc/character.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/fpc/character.gd b/addons/fpc/character.gd index dfdbc24..b056e7d 100644 --- a/addons/fpc/character.gd +++ b/addons/fpc/character.gd @@ -80,9 +80,9 @@ func _ready(): #It is safe to comment this line if your game doesn't start with the mouse captured Input.mouse_mode = Input.MOUSE_MODE_CAPTURED - HEAD.rotation = rotation - rotation = Vector3.ZERO # If the controller is rotated in a certain direction for game design purposes, redirect this rotation into the head. + HEAD.rotation.y = rotation.y + rotation.y = 0 if default_reticle: change_reticle(default_reticle)