[ODE] rotation matrix

pia dalusong ps_yumemi at yahoo.com
Mon Nov 4 04:55:02 2002


hello,

ummm, what did you use to set the rotation and
position of the mobots? did you still use
dBodySetRotation and dBodySetPosition? or
settransform?

and how did you do it exactly?  
sorry. got confused.

pia
--- Ed Jones <ed.jones@oracle.com> wrote:
> Hiya,
> 
> I've done exactly the same and just pinched (ahem,
> "reused") this code 
> from drawstuff.
> 
> As far as I know; if you define "mobotdata.rota" as
> "GLfloat rota[16]" 
> (something like "mobotdata.transform" would probably
> make more sense) 
> then you just need to do exactly what you've already
> done, plus;
> 
>     mobotdata.rota[12] = mobot_pos[0];
>     mobotdata.rota[13] = mobot_pos[1];
>     mobotdata.rota[14] = mobot_pos[2];
>     mobotdata.rota[15] = 1;
> 
> ...and that works fine for me.
> 
> I hope I'm right in saying that if things are going
> in the wrong 
> direction then there's probably just some signs
> wrong somewhere.
> 
> Cheers,
> Ed.
> 


__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/