Add ViewPlatform to a TransformGroup and getTransform when u need it:

TransformGroup trGr = new TransformGroup();
trGr.addChild(viewPlatform);
.....
.....
Transform3D t3d = new Transform3D();
trGr.getTrasform(t3d);
Vector3d v = new Vector3d();
t3d.get(v);
x = v.x;
y = v.y;
z = v.z;

That's it.

vladimir
             -=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<

In your previous letter u wrote:
--------------------------------
GK> Hi,
GK>         I am interested in getting the current position & orientation of a View
GK> object so that I will be ble to anounce to other instances of the same world
GK> where this view object is placed and looking to.

GK> I am not sure how to do this so if you can help me please respond

GK> Regards
GK> G. Kanellopoulos

GK> ===========================================================================
GK> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
GK> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
GK> [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".

Reply via email to