Leandro Lorenzet Dihl - Informatica wrote:
>
> Hi!!
>
> I'm working on a game in which the user needs to move an object around
> a 3D "room", allowing 6 degrees of freedom. The object has a DOF
> (direction of flight) and Up vector to define its direction of
> movement. I need to allow the user a set of operations such as
> rotation along the 3 axis (X, Y, and Z) and translations towards (and
> backwards) the DOF vector. The problem is that somehow I need to keep
> track of the object's status so that next time I perform, for example,
> a rotation it should take into account the local co-ordinate system
> (the modified DOF and Up vectors) rather than the canonical axes (X,
> Y, and Z - which are the room's co-ordinate system).
> Any suggestions?
I think that Quat4f is what you look for. This gives you full
orientation vector. For full info look for 'quaterions' on the web. You
can get/set quaterion using methods from Transform3D class.
Artur
===========================================================================
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".