Project sicma (sicma++at++hni.uni-paderborn.de)
Wed, 30 Apr 1997 16:54:49 +0200 (MDT)
i have some problems with the pfDCS.
I want to rotate a pfDCS around a certain point. The DCS is actually a door in the model.
This door should be rotated 90 degrees.
This is the code i used:
door->setMatType(PFMAT_ROT|PFMAT_TRANS|PFMAT_HOM_SCALE);
for (i=0.0;i<=90.0;i+=1.5) {
door->setRot(0,0,i);
door->setTrans(rot_point.xyz[0],rot_point.xyz[1],rot_point.xyz[2]);
pfFrame();
}
Where rot_point ist the point to be rotated around and door the pfDCS.
The door is rotated 90 degrees, but around the wrong point.
The door is animated as intended, but in the form of an quarter circle.
Has anyone solved such a problem by now?
Carsten Scharfe
dragon++at++hni.uni-paderborn.de
=======================================================================
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:08 PDT