Limit Camera-Rotation

Hi,



Merry Christmas!



I got another Problem with my Game.



Currently I'm using the MouseLookHandler for the Camera-Rotation, so the player can look around with the Mouse.

But now he can rotate the Camera in every direction and he can also look backwards. So if the Player moves the Mouse down for 180

i think in the first person handler, there is a function to enable limiting it to 90

Hi,



i think the lockAxis-Method does something different. As far as i understand it, it completly locks that Axis.



The FirstPersonHandler actually also uses the MouseLookHandler, but i couldn't find a method to limit it to 90

Maybe something like this will help:

http://www.jmonkeyengine.com/forum/index.php?topic=6535.0



Maybe this should be put on the wiki for reference, since it seems to be asked a bit.

Hi,



Thanks! This was exactly what i was looking for and it works :slight_smile:

SomethingNew said:

Maybe something like this will help:
http://www.jmonkeyengine.com/forum/index.php?topic=6535.0

Maybe this should be put on the wiki for reference, since it seems to be asked a bit.


You can always feel free to put it up :)  I've got this one covered for you..