Canvas3D canvas=new Canvas3D(null); SimpleUniverse universe=new SimpleUniverse(canvas); TransformGroup transform; Transform3D translation=new Transform3D(); translation.setTranslation(new Vector3d(0.0,1.0,0.0)); // 視点を (0.0,1.0,0.0) に設定 transform=universe.getViewingPlatform().getViewPlatformTransform(); transform.setTransform(translation);
戻る