BOCCARA Michael (MICHAEL.BOCCARA++at++siege.aerospatiale.fr)
Thu, 15 May 1997 11:49:06 +0200
Let's set a center (cx, cy, cz) (a point of the shoulder in the object crd
syst)
Let's set an axis (ax, ay, az) (again in the shoulder's object crd syst)
the pitch parameter is a rotation around (O, x)
instead of
dcs->setRot(0.0f, angle, 0.0f);
you do:
pfMatrix mat;
mat.makeRot(angle, ax, ay, az);
mat.preTrans(cx, cy, cz, mat);
mat.postTrans(mat, -cx, -cy, -cz);
dcs->setMat(mat);
Try it.
There is another method by inserting a SCS above the DCS in the scene tree,
but I don't remember the formula.
Mike
===================================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:13 PDT