Re: V0.8+ Bugs Update (Att: Bram)

"Bram Stolk" <[email protected]>
Newsgroups gmane.comp.lib.ode
Message-ID <[email protected]>
> >The function is provided so that you can translate it *to* 0,0,0
> >Does that make sense? :-)
>
> Ah I see, yes that makes perfect sense  :)
>
> It was the x,y,z parameters that threw me (along with the docs). It might
> have been less confusing to use just the mass parameter in the API?
> i.e. dMassTranslate(dMass *)
>



No, you need xyz to specify the vector.
Basically, you do:

dMassTranslate(&m, -m.c[0], -m.c[1], -m.c[2])

it's like a feedback thing: you translate with the negative of the current
offset.

http://opende.sourceforge.net/wiki/index.php/HOWTO_composite_objects


  bram

_______________________________________________
ODE mailing list
[email protected]
http://ode.org/mailman/listinfo/ode
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.