Re: pfBox & Collision Detection

New Message Reply Date view Thread view Subject view Author view

Steve Baker (sbaker++at++link.com)
Thu, 8 Jan 1998 11:06:35 -0600 (CST)


On Thu, 8 Jan 1998, Mario Veraart wrote:

> > I am using pfBox for doing some collision detection stuff, and I'm
> > getting confused with the results of pfBox::contains member function.
> > I have an active object whose bbox I want to test against several static
> > bboxes to detect any collision with the function contains. A collision
> > must be reported when any point of the active bbox is inside a static
> > bbox. I test the contains result with PFIS_MAYBE | PFIS_TRUE |
> > PFIS_ALL_IN, but it isn't working correctly in all cases.
> >
> > What is the difference between PFIS_MAYBE and PFIS_TRUE? What is the
> > *exact* meaning of PFIS_MAYBE?
> >
> > All objects in the dbase are axis-aligned, and I'm using Performer 2.1
> > with IR box.
>
> I have come to the conclusion that the pfBox::contains routine for
> other pfBoxes is buggy. I have written my own version.

IIRC, I had a problem with that too - there are also some
problems with inconsistant handling of empty pfBoxes.

Steve Baker 817-619-8776 (Vox/Vox-Mail)
Hughes Training Inc. 817-619-4028 (Fax)
2200 Arlington Downs Road SBaker++at++link.com (eMail)
Arlington, Texas. TX 76005-6171 SJBaker1++at++airmail.net (Personal eMail)
http://www.hti.com http://web2.airmail.net/sjbaker1 (personal)

** Beware of Geeks bearing GIF's. **

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:32 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.