[ODE] Static objects start rotating?
fryeja at us.ibm.com
Sat Aug 11 09:22:25 MST 2007
Gravity is (0.0, 0.0, -9.81), and I put a ground plane at Z = 0. A
ode-bounces at ode.org wrote on 08/11/2007 01:31:08 AM:
> What did you set for the WorldGravity Parameter?
> Am 10.08.2007 um 23:45 schrieb James Frye:
> > I'm sure this must be a really dumb question, but I can't find an
> > answer.
> > (Apropos of which, it would
> > be nice if there was some way to search the mailing list archives...)
> > I create a very simple simulation, just a box sitting on the ground
> > (Obj is
> > a struct that holds all
> > info about a body...)
> > Obj->body = dBodyCreate (world);
> > dBodySetPosition (Obj->body, 0.5, 2.0, 0.25);
> > dMassSetBox (&m, 1.0, 0.5, 2.0, 0.5);
> > dBodySetMass (Obj->body, &m);
> > Obj->geom = dCreateBox (space, 0.5, 2.0, 0.5);
> > dGeomSetBody (Obj->geoms, Obj->body);
> > I run this with a basic simulation loop as copied from the
> > examples. The box should just sit there
> > doing nothing, but it begins a slow rotation around the Z axis.
> > Why? What am I doing wrong?
> > Thanks,
> > James
More information about the ODE