Hi Oscar, rotX, rotY, rotZ of Transform3D will set the translational component to zero. So you cannot use them for your goal. You can take the AxisAngle4 class to let rotate an object around an arbitrary axis. Another solution would be to transform the line into the origin, perform the rotation and transform it back to its last position. Gernot Veith [EMAIL PROTECTED] www.janet.de > -----Urspr�ngliche Nachricht----- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Gesendet am: Dienstag, 8. Juni 1999 09:26 > An: [EMAIL PROTECTED] > Betreff: [java3d] Rotate around a axis > > > > Hello > > I try to rotate a line around a axis. This axis is parallel > to the Z axis, but > is placed in the > coordinate x=10 and y=15. The line begins in this point > (x=10,y=15,z=0) (like a > clock) > > My aplication is: > > public void actionPerformed(ActionEvent e ) { > Transform3D t = new Transform3D(); > if (e.getSource()==Action){ > angle += Math.toRadians( 10 ); > Transform3D temp = new Transform3D(); > t.set (new Vector3f(10,15,0)); > temp.rotX(Math.PI/8.0d); > t.mul(temp); > temp.rotY(-(Math.PI/4.0d)); > t.mul(temp); > temp.setRotation(new AxisAngle4d(0,0,1,angle)); > t.mul(temp); > t.setScale(0.005); > BrazoTrans[0].setTransform(t); > } > } > > How can i do this? > > All of the proofs that I do, the line rotate around the Z > axis placed in the > coordinates x=y=z=0. > > Thanks in advance for any help > > Oscar Saez > > > ===================================================================== > To subscribe/unsubscribe, send mail to [EMAIL PROTECTED] > Java 3D Home Page: http://java.sun.com/products/java-media/3D/ > ===================================================================== To subscribe/unsubscribe, send mail to [EMAIL PROTECTED] Java 3D Home Page: http://java.sun.com/products/java-media/3D/
