VSM 13 (vsm13++at++hol.fr)
Mon, 26 Oct 1998 15:57:17 +0100
Yoel HALLAKOUN
-----Message d'origine-----
De : Joaquin Casillas Melendez <jcasilla++at++glup.irobot.uv.es>
À : Performer Mailing List <info-performer++at++sgi.com>
Date : vendredi 23 octobre 1998 13:05
Objet : Intersection mask
>Hello all.
>
>I am doing collision detection of an aircraft with the scene, and of
>course don't want the isects intersecting with the aircraft model, so I
>changed the aircraft node mask to 0:
>
> aircraft->setTravMask(PFTRAV_ISECT, 0x0, PFTRAV_SELF, PF_SET);
>
>The problem is that this is not working and the aircraft is detecting
>collisions with itself.
>
>I have solved the problem by adding a node callback to the aircraft:
> aircraft->setTravFuncs(PFTRAV_ISECT, preIsect, NULL) and the preIsect
>function returning PFTRAV_PRUNE.
>
>I think the right way to do this is the former one, so I would
>appreciate any comments about solving the problem by setting the
>aircraft mask correctly.
>
>Thanks.
>
>
>
>-----------------------------------------------
> Joaquin Casillas Melendez mailto:jcasilla++at++glup.irobot.uv.es
> LISITT (ARTEC) Phone: +34 6 364 2253
> Dept. Electr. & Informatics Addr: Poligono de la Coma s/n
> University of Valencia Valencia (SPAIN)
>=======================================================================
>List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
This archive was generated by hypermail 2.0b2 on Mon Oct 26 1998 - 06:00:11 PST