First of all, sorry for my bad english, i am Italian...
Using the FPS camera, how to limit the vertical movement of the mouse?
I have a skybox without Top and Down, and I want to hide them...
Thanks
F.Fiorenzano
How to limit mouse movement?
try this: in your main loop put this(It's only an algorithm, don't C code, I don't try if it compiles)
vector3df rot;
rot = camera->getRotation();
if (rot.X>limitUpperX)
camera->setRotation(limitUpperX,rot.Y,rot.Z);
if (rot.X<limitBottomX)
camera->setRotation(limitBottomX,rot.Y,rot.Z);
vector3df rot;
rot = camera->getRotation();
if (rot.X>limitUpperX)
camera->setRotation(limitUpperX,rot.Y,rot.Z);
if (rot.X<limitBottomX)
camera->setRotation(limitBottomX,rot.Y,rot.Z);
---------------------------------------------
http://usuarios.lycos.es/spsteam/
http://usuarios.lycos.es/spsteam/