TransformGroup rotation=new TransformGroup(); root.addChild(rotation); rotation.addChild(new ColorCube()); // 色付き立方体 Alpha alpha=new Alpha(); Interpolator interpolator=new RotationInterpolator(alpha,rotation); rotation.addChild(interpolator);
BoundingSphere bounds=new BoundingSphere( new Point3d(0.0,0.0,0.0),100.0); // 原点を中心とする半径 100.0 の範囲 interpolator.setSchedulingBounds(bounds);
戻る