Lan Wu-Cavener schrieb:
Hi, every one:
I have the following rotation problem. What I need is to rotate the
ViewPlatform around its local x axis and local original y(0,1,0), or the
vector (0,1,0) in the local coordinates. Could anyone please help to figure
out how to make it work.
Thanks in advance!
Lan
Lan Wu-Cavener
Dept. of Landscape Architecture
===========================================================================
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".
Get the localToVworld transformation A of the Viewplatform. Then
calculate the inverse A^-1 then calculate the transforamtion in the
local coordinate system B and set the combination of the 3
transformations: A * B * (A^-1).
Hope i got the right order. Example code can be found in the j3d.org
repositiry. Look for DefaultManipulator class in the
org.j3d.input.spaceball.transformation package.
regards
Paul
===========================================================================
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".