Hi

Another question. Sorry, but I am not as familiar with 3d grahics as
I should be:

First, what I try to do:

I have two points p1 and p2. I want to draw a 3d arrow from p1 to
p2. My current solution is to compute the three rotations (x,y,z)
seperately and to rotate the arrow like this

Transform3D tx=new Transform3D(),ty=new Transform3D(),tz=new Transform3D();

tx.rotX(xrotatation);
ty.rotY(yrotatation);
tz.rotZ(zrotatation);

tx.mul(ty);
tx.mul(tz);

someTransformGroup.setTransform(tx);

This works with each particular rotation but leads to odd results in
certain circumstances. Is this the famous gimbal lock?

Isn't there a better way to get all three roations at the same time
and rotate a TransformGroup just the same angle around the same
rotation axis?

kind regards

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to