[ODE] Shifting body center of mass

Thompson, Randy AMRDEC/SAIC randy.thompson5 at us.army.mil
Wed Jan 4 12:52:09 MST 2006


I have built a vehicle and need to lower the center of mass a bit to
make it more stable.  Here is some code that shows basically what I am
doing.

 

dMass m;

dMassSetBoxTotal( &m, mass, dim1, dim2, dim3 );

m.c[2] -= offsetCM;

dBodySetMass( body, &m );

 

The displacement of the center of mass seems to have no effect on my
models behavior.  I have tried moving the CM in x, y and z directions
large distances and it has no effect.

 

Am I doing something wrong or is this broken?

 

Randy

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://q12.org/pipermail/ode/attachments/20060104/f8150821/attachment.htm


More information about the ODE mailing list