Nevermind I think I got it....
 
This is the way I did it.....AM I RIGHT?
 
public void getCurrentViewerPosition(){
AViewingPlatform viewingPlatform = simpleScene.getViewingPlatform(); 
TransformGroup tGroup   = viewingPlatform.getViewPlatformTransform()  ; 
Transform3D t3d = new Transform3D();
tGroup.getTransform(t3d);
AVector3d vect = new AVector3d();
t3d.get(vect);
 
System.out.println("=====Current Viewer Position======");
double x = vect.x;
double y = vect.y;
double z = vect.z;
 
System.out.println("x:" + x);
System.out.println("y:" + y);
System.out.println("z:" + z);
 
 
 
}
----- Original Message -----
From: Zak Nixon
Sent: Thursday, October 04, 2001 1:54 PM
Subject: [JAVA3D] Viewer Position

How do i get the current position of the viewer?
 
Zak

Reply via email to