Thank you very much for your advice!!!! Gianni ----- Original Message ----- From: "Pillai Anand" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 30, 2001 3:27 PM Subject: Re: [JAVA3D] Very simple question!!
> I think this can be done by > > Get your line into an AxisAngle4f. This can be done by getting > the 1st and last pts of the LineArray, creating a Vector3f from > the two tuples and normalizing the Vector. Get the vector direction > as a Tuple3f or a float[]. Get the x,y,z of the direction. Make an > AxisAngle4f by > > AxisAngle4f AxsAngle = new AxisAngle4f(x,y,z, angle); > > Set your Shape3D's transform3D to this rotation. > > TransformGroup tgroup = (TransformGroup) s3d.getParent(); > Transform3D t3d = tgroup.getTransform(); > > t3d.setRotation(AxsAngle); > > Anand > > --- Gianni Riccio <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I have a little problem with my applet! > > I want rotate my shape3D around a LineArray. > > How can I do this rotation?Is there a method like > > rotX(angle),rotY(angle),rotZ(angle) for a generic Line? > > > > Thanks very much > > Gianni > > > > > __________________________________________________ > Do You Yahoo!? > Make a great connection at Yahoo! Personals. > http://personals.yahoo.com > > =========================================================================== > 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". =========================================================================== 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".
