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.