Greetings,
In my scene view my camera seems to be in the correct perspective however in the actually game it seems to be off and this is crucial to my game because the raycast might seem off but in reality it’s not. Please help. And I don’t think it’s a problem with my Scripting, I think its the camera itself. But the only manipulation I’ve done to the camera is…
//X direction
rotLR = Input.GetAxisRaw("Mouse X") * mouseSense;
transform.Rotate (0f, rotLR, 0f);
cam.transform.localRotation = Quaternion.Euler(vertRot,0f,0f);
//Y Direction
vertRot -= Input.GetAxisRaw("Mouse Y") * mouseSense;
vertRot = Mathf.Clamp (vertRot, -yTopRange, yBottomRange);
cam.transform.localRotation = Quaternion.Euler (vertRot, 0f, 0f);
Thanks