Mario Veraart (rioj7++at++fel.tno.nl)
Sat, 18 Apr 1998 15:31:27 +0200 (MET DST)
You must tell the isect function to store the path info
Look in the man page of pfNode.
iSegs.mode = PFTRAV_IS_GSET | PFTRAV_IS_PATH;
> pfCopyVec3(iSegs.segs[0].pos, handPosition->pos);
> pfCopyVec3(iSegs.segs[0].dir, handPosition->dir);
> iSegs.segs[0].length = handPosition->length;
> iSegs.userData = NULL;
> iSegs.activeMask = 0x01;
> iSegs.isectMask = VRCONTROLABLE_ISECT_MASK;
> iSegs.bound = NULL;
> iSegs.discFunc = NULL;
>
> if (pfNodeIsectSegs(root, &iSegs, hits) != 0)
> {
> pfPath* path;
>
> pfQueryHit(hits[0][0], PFQHIT_PATH, &path);
>
> // this returns zero; and therefore the path seems to be
> //empty...
> int pathLength = pfGetNum(path);
>
>
> pfNode* hitNode;
>
> // returns a valid hitNode
> pfQueryHit(hits[0][0], PFQHIT_NODE, &hitNode);
> }
>
>
> Maybe someone has some hints for me ;-). Thanx in advance,
>
> Uwe Pachler
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
=======================================================================
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 Aug 10 1998 - 17:57:15 PDT