From efb40a50bd9ef3a28f0037a26a248ed66434ffb2 Mon Sep 17 00:00:00 2001 From: nexovec Date: Sat, 29 Jan 2022 15:40:02 +0100 Subject: [PATCH] look x limit --- Assets/Prefabs/Player.prefab | 4 ++-- Assets/Scripts/PlayerController.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Prefabs/Player.prefab b/Assets/Prefabs/Player.prefab index 97068d7..bb98a51 100644 --- a/Assets/Prefabs/Player.prefab +++ b/Assets/Prefabs/Player.prefab @@ -1391,7 +1391,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3244356566819001084} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalPosition: {x: 0, y: 0, z: 3.67} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: @@ -1481,7 +1481,7 @@ MonoBehaviour: runningSpeed: 7.5 jumpSpeed: 3 lookSpeed: 7.5 - lookXLimit: 7.5 + lookXLimit: 8.75 playerCamera: {fileID: 3244356567913423211} runningParticles: {fileID: 1608137079} rotationX: 0 diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index 38ec3d6..29a2c0e 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -8,7 +8,7 @@ public class PlayerController : MonoBehaviour public float runningSpeed = 7.5f; public float jumpSpeed = 7.5f; public float lookSpeed = 7.5f; - public float lookXLimit = 7.5f; + public float lookXLimit = 40.0f; public Camera playerCamera; public ParticleSystem runningParticles; Vector3 moveDirection = Vector3.zero;