(Ogre3D) I have an camera-object, pitched about 30 degrees to the surface below.
Now, when the User presses a certain key, for example W or S, the Camera should move along the direction facing but stick to the x-y plane of the global space, like you vacuum a floor ;) I think Age of Empires for example has the same view mechanics.
\ Camera-View Ray / User Presses W
\
\ --->> desired moving direction
\
\
____________________________________________________ Global Space X,Y-Plane Ground
My problem isn't the code itself but the calculating behind it. How can I extract the global x-y Plane-Direction out of a local objects facing Direction?
Thanks for your help!