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 raycaat might seem off but in reality its not. Please help.
Thanks
Have you got any script attached to your camera,which changes/set position? It is worth checking as scripts values overrides editors at the start.also check cam position in editor before and after you press start and see if they are the same.
I’ve definitely got a script on the camera.
//Mouse Movement
//X direction
rotLR = Input.GetAxisRaw("Mouse X") * mouseSense;
transform.Rotate (0f, rotLR, 0f);
//Y Direction
vertRot -= Input.GetAxisRaw("Mouse Y") * mouseSense;
vertRot = Mathf.Clamp (vertRot, -yTopRange, yBottomRange);
cam.transform.localRotation = Quaternion.Euler (vertRot, 0f, 0f);
But I think the values are correct, and in the Scene view it seems fine. So I’m not sure, and the position of the camera is attached to the player as a child so the position is relative to the player. Also in my start i have cam.transform.rotation = Quaterion.Euler(0f,0f,0f);
