Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Mon, 13 Jan 1997 03:22:52 +0000
void print_dcs_pos(pfDCS *dcs)
{
pfMatrix *matey;
pfVec3 zeropos, position;
pfSetVec3(zeropos, 0.0f, 0.0f, 0.0f);
matey = pfGetDCSMatPtr(dcs);
pfXformVec3(position, zeropos, *matey);
printf("%.3f, %.3f, %.3f\n",
position[PF_X], position[PF_Y], position[PF_Z]);
}
Cheers,
Angus.
On Jan 13, 10:33am, Charlie H. Chang wrote:
> Subject: about pathFly.c
>
> Hi there,
>
> In the example of "pathFly.c" there is a car model (pfDCS object)
> and I would like print out its coordinate while it's moving.
> So is there a function providing this information?
>
> Thank you in advance.
>
> ---------------------------------------------------------------
> Charlie H. Chang (ext 209) E-mail: a00chc00++at++nchc.gov.tw
> National Center for High-performance Computing
> Scientific Visualization and Interactive Media Lab
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from Charlie H. Chang
=======================================================================
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:54:19 PDT