[ODE] Mass translation problems

Jon Watte hplus-ode at mindcontrol.org
Thu Dec 2 14:16:40 MST 2004


The translation of a mass is not respected by a body. The center of mass is always at the center of the body. You have to instead translate your geom, typically using a GeomTransform. This is mentioned in the FAQ, by the way.

Cheers,

			/ h+


-----Original Message-----
From: ode-bounces at q12.org [mailto:ode-bounces at q12.org]On Behalf Of Jonas
Svegland
Sent: Thursday, December 02, 2004 4:35 AM
To: ode at q12.org
Subject: [ODE] Mass translation problems


Hi,

I have a dynamic trimesh (with a box mass) attached with a hinge joint 
to the world. I'm trying displace the centre of mass of this rigid body 
using dMassTranslate, but I can't seem to get it to work. The effect I 
want from this is a kind of pendulum thingy.

I think I have read something about this function not working properly 
on this list a while back. Has anybody got this function to work? Any 
ideas of how to accomplish this?

cheers

Jonas Svegland
Custom Red Software Studios
svegland at customred.com 

_______________________________________________
ODE mailing list
ODE at q12.org
http://q12.org/mailman/listinfo/ode




More information about the ODE mailing list