Jim Helman (jimh++at++surreal)
Tue, 24 Jan 95 15:57:16 -0800
A bug. For bounding sphere intersections (PFTRAV_IS_GEODE), the
transformation wasn't being copied into the final pfHit structure
after return from the discriminator. I just fixed it for 2.0. A
workaround is to use a discriminator callback and manually set the
PFHIT_XFORM bit in the flags field of the pfHit structure, i.e.
in the discriminator callback:
#if (PF_MAJOR_VERSION == 1)
int
mydiscrim(pfHit *hit)
{
((long *)hit)[4] |= PFHIT_XFORM;
return PFTRAV_CONT;
}
#endif
Be sure to #ifdef the code because bad things will happen
when if you try this with 2.0.
-jim
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:53 PDT