I use double release DLL version of ODE. I try create simple sphere. But when i use dBodySetMass program return box with error "assertion dMassCheck failed".What i do wrong?
static dWorldID world;
static dSpaceID space;
static dBodyID body;
static dGeomID geom;
static dMass m;
static dJointGroupID contactgroup;
...
void initPhysic()
{
dInitODE ();
world = dWorldCreate ();
space = dHashSpaceCreate (0);
dWorldSetGravity (world,0,0,-0.2);
dWorldSetCFM (world,1e-5);
dCreatePlane (space,0,0,1,0);
body = dBodyCreate (world);
geom = dCreateSphere (space,0.5);
dMassSetSphere (&m,1,0.5);
dBodySetMass (body,&m);