Question by
Privvet · May 24, 2021 at 03:32 AM ·
mathf.clamp
Why does the gameobject "bounce back", and start rotating the opposite direction once it has reached its mathf.clamp rotation limit?
The scripts are below. This is really confusing because the mouse look script (looking) doesn't have this problem with limiting the y rotation. Anyone have an idea why it bounces back like this?
screenshot-173.png
(237.6 kB)
screenshot-172.png
(216.9 kB)
Comment
Your answer
Follow this Question
Related Questions
Need coroutine to render a texture value clamped from 0 to 1 over time 1 Answer
Hey! I have problem with my FPS controller, where Mathf.Clamp doesn't work. Any ideas? 1 Answer
Is there any way to reduce this bit of Mathf.Clamp code for spawn positions down to one line? 1 Answer
How to clamp transform.Rotate values? 0 Answers