Hi guys, It finally work the way I want it. Didn't expect few lines of codes will get what I want. I solved the problem using Zalkin's method, never try the second method yet by trz. Maybe will try it out later as well. Anyway, thanks a lot guys.
-Alex- ----- Original Message ----- From: "trz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 22, 2002 6:37 PM Subject: Re: [JAVA3D] Help With Navigation Behaviors > Chad Zalkin wrote: > > > This should do it, there may be a better way, but this is all I've ever come > > across/used. > > > > Transform3D t3d = ... > > Vector3f vec = new Vector3f(); > > Point3f pt = new Point3f(); > > > > t3d.get( vec ); > > vec.get( pt ); > > You can also use > > Transform3D tr = node.getLocaltoVW > Point3f pt = new Point3f(); > tr.transform( pt ); > > I'm not sure if you get the same result: the tr.get(vector) javadoc > talks about "translational components", maybe if in the scene graph path > you have some non-translation transforms you may get a different result. > > > Bye > > =========================================================================== > 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".