[gameprogrammer] Re: placing an object behind another

On Thu, May 8, 2008 at 6:57 AM, Luo Hei <luo_hei@xxxxxxxx> wrote:

> Im trying to implement two view modes in my game, a primary isometric like
> view and an optional 3rd person view. Im using ogre, which represents the
> node orientation as a quaternion. I want to place the camera node behind the
> character node, but I dont know how to calculate what is "bahind". According
> to a reply in Ogre forums I must use the inverse of the direction vector,
> but there is no way to get the direction, as I said Ogre just provides node
> orientation as a Quaternion.
> Can somebody give me an idea?


well, a quaternion represents a rotation so try rotating a unit vector in
the plane you want by the quaternion. That should give you the direction
vector. Then you can take the inverse of the vector and have what you want.

Bob Pendleton



>
>
> --
> What one fool can do, another can.
> Silvanus P. Thompson
>
>
>
> ______________________________________________ LLama Gratis a cualquier PC
> del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
>
>
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>
>
>


-- 

+ Bob Pendleton: writer and programmer
+ email: Bob@xxxxxxxxxxxxx
+ web: www.GameProgrammer.com
+ www.Wise2Food.com

+--------------------------------------+

Other related posts: