limiting rotation of an object.
So I have a submarine object and I want it to implement two functions dive and surface. But I have to limit the rotation to a maximum value of 30 degrees. I have tried a lot but cannot limit the rotation somehow. The submarine can turn on the y axis. So how I can best approach the problem.
Comment
Your answer
Follow this Question
Related Questions
How to lock cardboard rotation in unity3d? 0 Answers
Enemy Ai Rotation not working properly 0 Answers
Locking lean rotation on a motorcycle. 0 Answers