Limiting viewing angles with FirstPersonHandler?

Im using the FirstPersonHandler to move around, but the handler can move the camera around 360 degrees, so my question is, how do you limit that rotation, so that it can only look up and down forexample ~70 degrees like in a 3d shooter?

You have to use your own Actions then.

I did that with http://cvs.world-of-mystery.de/cgi-bin/cvsweb.cgi/wom/src/de/worldofmystery/client/input/RestrictedLookDownAction.java

which is called in http://cvs.world-of-mystery.de/cgi-bin/cvsweb.cgi/wom/src/de/worldofmystery/client/input/WomMouseAction.java

The WomMouseAction is intialized instead of the MouseLook.

Thanks, that was fast :slight_smile: