[ODE] Apparent bug in geom.cpp (v0.03)

Russ Smith russ at q12.org
Wed Jan 9 12:08:02 2002


> There's probably a bug in geom.cpp's dCollideBP(). You normally 
> define a plane by normal*point+d=0 (where
> normal=plane->p[0..2]=(a,b,c) and d=plane->p[3]), to get the usual 
> ax+by+cz+d=0.

well okay, but in ODE i define a plane as:
  p[0]*x + p[1]*y + p[2]*z = p[3]
not as
  p[0]*x + p[1]*y + p[2]*z + p[3] = 0
so you see the sign on p[3] is reversed. confusing huh? i not sure why
you've needed to change dCollideBP() to make it work - but i'm 
reasonably sure that the initial depth calculation works - at least 
i've never see a problem...

hope this helps.

russ.

--
Russell Smith
http://www.q12.org