crakrjak++at++xerxesinc.com
Sun, 28 Jun 1998 12:37:46 -0400 (EDT)
thanks for your help! :)
Mike
On Mon, 29 Jun 1998, Mario Veraart wrote:
> >
> > hi, i have trouble with my collision detection routine...
> >
> > I get the Collision point with:
> >
> > pfQueryHit(hit, PFQHIT_POINT, &pnt);
> > pfQueryHit(hit, PFQHIT_XFORM, xform);
> >
> > pfXformPt3(xpnt, pnt, xform);
> >
> > and i cant figure out how to make the viewport go 5 units back the way it
> > came from, could someone enlighten me in how to do this.
> >
>
> If I understand correctly.
>
> You can get the current view matrix. Decompose it to get the heading,
> pitch and roll of the viewer. With the heading and pitch you have an
> orientation of the viewer. Just move in the oposite direction
> 360-heading with -pitch to get the viewer in a backwards motion
>
> 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
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:36 PDT