[ODE] dHashSpaceGetLevels

Vadim Macagon vadim_mcagon at hotmail.com
Fri Aug 8 17:28:02 2003


Hi,

Could someone add dHashSpaceGetLevels to CVS please :)

include/ode/collision_space.h:

void dHashSpaceGetLevels (dSpaceID space, int* minlevel, int* maxlevel);

ode/src/collision_space.cpp:

void dHashSpaceGetLevels (dxSpace *space, int* minlevel, int* maxlevel)
{
  dAASSERT (space);
  dAASSERT (minlevel && maxlevel);
  dUASSERT (space->type == dHashSpaceClass,"argument must be a hash space");
  dxHashSpace *hspace = (dxHashSpace*) space;
  *minlevel = hspace->global_minlevel;
  *maxlevel = hspace->global_maxlevel;
}


Thanks,

Vadim.