Im trying to change the upvector of fps camera scene node. But it dont work properly, please help, ill try to describe the problem:
(0,1,0) its default value and work properly
(0,-1,0) works allright but both mouse axis seem to be inverted
(1,0,0) , (0,0,1), etc act NUTS, camera view turn really strange when i move mouse, and its completly uncontrollable for common player.
do anyone know what cause this? Its the problem of camera itself or of its controls? (ps, Im trying to change the gravity ingame so change of upvector of camera is necessary)
strange setUpVector problem.
-
hybrid
- Admin
- Posts: 14144
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
The up vector should always point out of the "head" of the camera, depending on its rotation. It does not have anything to do with gravity or the like. If you rotate the camera 180 degrees about the z axis (turning it head over) you should make the up vector (0,-1,0). Then the inversion is also correct, as you're flipped head over.
