|
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); }
|
