[ODE] weight distribution in box

THD apt at home.se
Wed Mar 2 13:07:57 MST 2005


I simply use dMassTranslate when setting the mass, here I lower the
centre of mass by 1.

dMass m;
dMassSetBox(&m, 1, length, width, height);
dMassAdjust(&m, 5);
dMassTranslate(&m, 0.0, -1.0, 0.0);     //centre of mass
dBodySetMass(bodyId, &m);

	/Sepultang


----- Original Message -----
From: Bram Stolk <bram at sara.nl>
Date: Tue, 01 Mar 2005 20:06:38 +0100

> Hello,
> 
> I have modelled the chassis of my car as a box.
> How can I have the bulk of the weight in the lower
> 10% of the box?
> 
> I could model it as 2 boxes with different weight ofcourse,
> but there seems to be a way to specify mass distribution in ode,
> but I dont understand how to do this.
> 
> thx
> 
>   bram
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode





More information about the ODE mailing list