[ODE] Starting Problems ?
Megan Fox
shalinor at gmail.com
Fri Oct 1 09:59:17 MST 2004
I don't see where you're calling a Step() function - are you?
(dWorldStep, etc)
-Megan Fox
On Fri, 1 Oct 2004 17:42:00 +0200, Frank Steinicke <steinicke at web.de> wrote:
> Hi everybody,
>
> now, i have tried to set up a scene with a sphere, which i want to
> force in several directions. I have integrated the following code into
> my app and during several timeevent i ask for the position of my
> _body_, but it does not change, although i force it.
>
> Can anybody help me ?
>
> // Open Dynamic Engine Stuff
> static dWorldID _world_ = dWorldCreate();
> static dSpaceID _space_ = dHashSpaceCreate(0);
> static dBodyID _body_ = dBodyCreate(_world_);
>
> dWorldSetGravity (_world_,0,0,-1.5);
> dWorldSetCFM (_world_,1e-5);
> dWorldSetERP (_world_, 0.8);
> dWorldSetAutoDisableFlag (_world_,1);
> dWorldSetContactMaxCorrectingVel (_world_,0.1);
> dWorldSetContactSurfaceLayer (_world_,0.001);
> dCreatePlane (_space_,0,0,1,0);
>
> dBodySetPosition(_body_,center);
> dGeomID sphere = dCreateSphere (0,0.0286);
> dMass m;
> dMassSetSphere (&m,5.0,0.0286);
> dGeomSetBody (sphere, _body_);
> dBodyAddForce(_body_,3.3,4.2,5.1);
>
> Thanks
> Frank
>
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>
>
>
More information about the ODE
mailing list