[SOLVED] Limit Camera up and down movement

I have a question: how can I limit the up and down movement of the FlyCam, to avoid backflip and frontflip?

I don’t think you can “out of the box”. Just copy the class and limit the x angle - a bit like this:

https://github.com/jayfella/jme-focuscamera/blob/master/src/main/java/com/jayfella/camera/FocusCameraState.java#L293

Have a look at this quick solution:

2 Likes

Thank you very much, it’s working!

3 Likes