Richard Bone wrote:


To get the absolute position, traverse the scenegraph and add all the vectors together that precede the target object. ie. Call it on the root, then the child of the root, etc.



No that is not correct. The transforms can be rotated and/or scaled, in
that case it will not work to just combine all the positions.

Instead you should call getLocalToVworld(t) on the node to get its
absolute transform, then extract the position from that.

Nikolai

===========================================================================
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".

Reply via email to