First Person Controller X Rotation CLAMP

Jack 2 years ago 0

You know how Unity displays the current rotation of an object in the inspector? How do you use that?

I need to clamp the camera so it doesn't exceed positive or negative 90. All other workarounds i've tried don't work.

If I could just know how to use what the editor knows it be so easy.

I'm well aware of the tutorial: https://support.ludiq.io/communities/5/topics/1832-first-person-controller

That does work but not when you want to increase the rotation speed or multiply it by delta time to smooth it out. It either breaks the clamp or changes the clamp angle to something different everytime you change the rotation speed.

Please and thank-you

Screen Shot 2018-08-08 at 23.11.56.png

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):