[ODE] Displaced mass
Jon Watte (ODE)
hplus-ode at mindcontrol.org
Fri Jun 3 12:56:02 MST 2005
By "FAQ" I mean "Wiki", sorry :-)
The "known issues" in the docs actually talk about this problem,
although it's a one-liner.
Yes, dMassTranslate is basically useless; don't use it, and instead use
a dGeomTransform object that encapsulates your dGeom. Note that
dGeomSetPosition() will set the position of the body if it's attached
directly to a body, whereas it will set the position relative to the
parent when it's attached to a dGeomTransform.
Cheers,
/ h+
John Donovan wrote:
>>The FAQ explains this in great detail,
>
>
> Oh! Does it? I've just had a read through the FAQ and I can't see
> anything about this. The docs I have are from version 0.5, dated 29 May,
> 2004. Are there more recent ones?
>
>
>>Instead, you have to counter-displace the Geom of that body, using a
>
> dGeomTransform.
>
> Right, I did wonder if that was the case. Does that mean I don't have to
> call dMassTranslate() at all, just call dGeomSetPosition(geom, -x, -y,
> -z)? (Where geom is the "real" geom which is attached to a transform
> geom and nothing else).
>
>
> -John Donovan
>
> The content of this message and any attached file are confidential and/or privileged and are for the intended recipient only. If you are not the intended recipient, any unauthorised use, disclosure, copying, distribution or other dissemination is strictly prohibited. If you receive this message in error please notify the sender immediately by email, telephone or fax and then delete this email. Any attachment with this message should be checked for viruses before it is opened. Magenta Software Limited cannot be held responsible for any failure by the recipient to check for viruses before opening any attachment. Copyright in this email and attachments created by us belongs to Magenta Software Limited. Should you communicate with anyone at Magenta Software Limited by email you consent to us monitoring and reading any such correspondence.
>
>
>
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>
>
More information about the ODE
mailing list