Hi, friends:
I want to rotate and translate object without changing
viewing angle. What can I do? Just make object rotate
or translate.
The following is my current method, but the result is:
although the object rotate, the coordinate system also
rotate. and next rotation will have big problem.
ang_x=ang_x/180.0f*3.1415926f;
ang_y=ang_y/180.0f*3.1415926f;
ang_z=ang_z/180.0f*3.1415926f;
transX.rotX( ang_x );
transY.rotY( ang_y );
transZ.rotZ( ang_z );
newTransform.mul(transX);
newTransform.mul(transY);
newTransform.mul(transZ);
objTrans.setTransform(newTransform);
I think this method is not good, result in a wrong
result. What can I do?
Thanks
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.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".