>If you multiply seperate rotations, the second rotation will use the
>resulting object of the first rotation.
>If however you want to do several rotations at once, e.g. roll/pitch/yaw for
>an aircraft, you should use the
>Transform3D.setEuler(Vector3d) method.

I use the roll/pitch/yaw for an aircraft (ie. a transformgroup) like this:

// T is the current Transform3D for my TransformGroup
  public void rotate(double[] rotationAngles) {
    Transform3D temp = new Transform3D();
    temp.rotY(rotationAngles[0]);
    T.mul(temp);
    temp.rotZ(rotationAngles[1]);
    T.mul(temp);
    temp.rotX(rotationAngles[2]);
    T.mul(temp);
    setTransform(T);
  }

David.

Reply via email to