Re: pfBox & Collision Detection

New Message Reply Date view Thread view Subject view Author view

Mario Veraart (rioj7++at++fel.tno.nl)
Thu, 8 Jan 1998 13:21:49 +0100 (MET)


> 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.

Mario
=======================================================================
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.