private BranchGroup createSceneGraph() {
BranchGroup objRoot = new BranchGroup();
Transform3D rotate =new Transform3D();
Transform3D rotateY = new Transform3D();
rotate.rotX(Math.PI/4.0d);
rotateY.rotY(Math.PI/4.0d);
rotate.mul(rotateY);
TransformGroup objRotate = new TransformGroup(rotate);
objRotate.addChild(new ColorCube(0.4));
objRoot.addChild(objRotate);
// TODO Auto-generated method stub
return objRoot;
}
3D旋转
最新推荐文章于 2022-08-14 21:31:01 发布