Skip to content

Commit a1f9426

Browse files
Ignore input gravity and sensitivity
1 parent 3c2c4e7 commit a1f9426

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

FreeLook.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ void Start()
4848

4949
void Update()
5050
{
51-
yaw += turnSpeedH * Input.GetAxis("Mouse X");
52-
pitch -= turnSpeedV * Input.GetAxis("Mouse Y");
51+
yaw += turnSpeedH * Input.GetAxisRaw("Mouse X");
52+
pitch -= turnSpeedV * Input.GetAxisRaw("Mouse Y");
5353

5454
transform.eulerAngles = new Vector3(pitch, yaw, 0.0f);
5555

56-
inputH = Input.GetAxis("Horizontal");
57-
inputV = Input.GetAxis("Vertical");
56+
inputH = Input.GetAxisRaw("Horizontal");
57+
inputV = Input.GetAxisRaw("Vertical");
5858

5959
Vector3 moveDirection = (transform.forward * inputV + inputH * transform.right).normalized;
6060

0 commit comments

Comments
 (0)