[ODE] Mass and density

Hampus Soderstrom hampus at sxp.se
Mon Jul 18 10:47:58 MST 2005


Hi,

How do I create a 1 cubic meter box that weighs 1000kg?

In my simulation I have 1 unit = 1 meter and gravity is -9.82.

This is what I try:

dCreateBox(space,1,1,1);

density=1; //is this correct?
dMassSetBox(&m, density, 1,1,1);


regards

Hampa






More information about the ODE mailing list