Eric Heft (eheft++at++dnaco.net)
Mon, 28 Jul 1997 17:22:21 -0400 (EDT)
I'm working on a flight simulator. I've loaded an aircraft model
into a DSC node which I use pfDSCTrans and pfDSCRotate to position.
I'm also moving the channel view to I have an inside out view. I'm
using perfly a the basis of this code.
void
updateSim(pfChannel *chan)
{
/* ... all the perfly updateSim code ... */
/* ... Stuff to read stick inputs and call the f15 dynamics ... */
/* ... ship->rot contains current rotation ... */
/* ... ship->pos contains current translation ... */
pfDCSTrans(ship->dcs,ship->pos[0],ship->pos[1],ship->pos[2]);
pfDCSRot(ship->dcs,ship->rot[0],ship->rot[1],ship->rot[2]);
pfChanViewOffsets(Chan[0],ship->pos,ship->rot);
}
=======================================================================
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:55:39 PDT