[ODE] dBodyGetGravityMode() patch
David McClurg
dmcclurg at pandemicstudios.com.au
Tue Sep 10 22:15:01 2002
in ode.cpp, i think dBodyGetGravityMode() has the test inverted. since mode==1 means that the dxBodyNoGravity flag is cleared, the test should be "((b->flags & dxBodyNoGravity) == 0)". here's the current code...
void dBodySetGravityMode (dBodyID b, int mode)
{
dAASSERT (b);
if (mode) b->flags &= ~dxBodyNoGravity;
else b->flags |= dxBodyNoGravity;
}
int dBodyGetGravityMode (dBodyID b)
{
dAASSERT (b);
return ((b->flags & dxBodyNoGravity) != 0);
}