playMaker

Author Topic: Clamping Y rotations for first person camera?  (Read 1619 times)

mrminico

  • Full Member
  • ***
  • Posts: 129
Clamping Y rotations for first person camera?
« on: January 04, 2017, 09:57:00 PM »
Ive been having some issues clamping camera rotations for the Y axis (tilting up and down). Im currently using get axis and have a float variable for my analog sticks called "r-Joy_yaxis" for the Verticle value since im using an xbox control. When I use clamp float for the variable "r-Joy_yaxis" that i also used to control the rotation that looks up and down the clamping doesn't work and the camera continues to rotate a full 360 degrees. What I essentially want to achieve is the same functionality that mouse look has where it locks the y axis not allowing the camera to rotate all the way and only lets you look to the sky or floor.

mrminico

  • Full Member
  • ***
  • Posts: 129
Re: Clamping Y rotations for first person camera?
« Reply #1 on: January 05, 2017, 10:03:02 PM »
If anyone has a clue let me know, I've been stuck on this for a while D: