[ODE] V0.8+ Bugs Update (Att: Bram)

Bram Stolk b.stolk at gmail.com
Mon Sep 24 17:13:32 MST 2007


> >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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ode.org/pipermail/ode/attachments/20070924/62c6becd/attachment.htm


More information about the ODE mailing list