Re: axis of rotation :: again
Garrett Williams (gwilliams++at++etcflorida.com)
Sun, 20 Apr 1997 09:41:11 -0400
BOCCARA Michael wrote:
>
> If I remember well :
>
> 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
Great Balls of VirtualFire it works....!!!!
Thanks for the help
garrett
=======================================================================
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:14 PDT