does coordinate system change?
Hello, girls:) I need your authority opinion. Very simple question.
I have a color cube for example. I have a coordinate system x0,y0,z0. Then object appears I begin to rotate it using mouse. So, it changes x0,y0,z0 coordinate system to new x1,y1,z1 coordinate system or it just rotates an object?
Message was edited by:
America70
# 1
> Very simple question.
If it is then you need to improve the way you are asking it.
> I have a color cube for example. I have a coordinate
> system x0,y0,z0. Then object appears I began to
> rotate it using mouse. So, it changes x0,y0,z0
> coordinate system to new x1,y1,z1 coordinate system
> or it just rotates an object?
What do you want it to do? I don't understand your question.
# 2
Ok. I have an object 3D. For example I have a color cube. I rotate it.
//new:
BranchGroup BG=new BranchGroup();
TransformGroup TG=new TransformGroup();
Transform3D rotator=new Transform3D();
//3d-object:
Shape3D shape=new Shape3D();
//commands:
rotator.rotX(Math.PI/4);
//put it all together:
TG.addChild(rotator);
TG.addChild(shape);
BG.addChild(TG);
/*
adding BG to universe
*/
My question is:
That action will do:
1)change the coordinate system
2)change the coordinates of object.
null