[ODE] HashSpace values

Nate W coding at natew.com
Thu Jul 3 02:28:01 2003


On Thu, 3 Jul 2003, Adam D. Moss wrote:

> Fig TaTam wrote:
> > I'm still not clear on the meaning of "minlevel" and "maxlevel" 
> > parameters for HashSpace in ODE's collision detection system.
> 
> Set minlevel and maxlevel such that your full range of geom sizes are
> encompassed.  Say that your largest geoms are of size 41 units (in X
> or Y or Z dimension) and your smallest are 0.25 units in size.
> 
> Then your dHashSpaceSetLevels call should be:
> dHashSpaceSetLevels(space, -2, 6) to set the min and max cell sizes to
> 2^-2 = 0.25 and 2^6=64 (2^6 being the smallest power of 2 that '41'
> will fit in).

Thanks Adam.  I was wondering about that myself, so I just added your
response to the Wiki FAQ.

-- 

Nate Waddoups
Redmond WA USA
http://www.natew.com