Fischler (src++at++rose)
Thu, 2 Mar 1995 02:50:00 -0800
Right - the pfXformer definition is not in pfutil.h.
I think you just want:
{
pfNode *grndNode = myTerrainNode; /* or just use your entire scene */
pfCoord coord;
pfVec3 zpr;
/* this is assuming you are using xformer - otherwise, set coord
* to your current position and HPR.
*/
pfuGetXformerCoord(ViewState->xformer, coord);
pfuCollideGrnd(&coord, grndNode, zpr);
}
And, as you obviously realize, if you hit, zpr will be the point of
intersection with a downward (in Z) ray and pfuCollideGrnd will
return PFUCOLLIDE_GROUND. Otherwise, pfuCollideGrnd will return FALSE.
src.
--
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Graphics Dev.
src++at++sgi.com (415) 390 - 1002 FAX: (415) 965 - 2658 MS 8U-590
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:02 PDT