PDA

View Full Version : Local coordinate and global coordinate


haohaoxuexi1
07-24-2016, 12:21 PM
In the Vizard help, the coordinate is described like below.

Key Concepts
•By default, objects are added as children of the world and positioned in world coordinates.
•Each node has its own local coordinate system that moves with the node.
•A node's coordinate system has its origin at the node's center and axes aligned with the node's orientation.

I have a question, if one node with a local coordinate in pos [1,0,1], so if I apply a spin or moveto command, the object will transform on the base of [1,0,1]

what if I want the object spin or moveto on the base of pos [0,0,0], is there anything can do with it except for change the coordinate from the modeling software and add the object again to Vizard?

Jeff
07-24-2016, 07:02 PM
You could use the node.center (http://docs.worldviz.com/vizard/#commands/node3d/setCenter.htm) command to change the point the objects rotates around. Or open the object in Inspector, translate the model, and then save it out again.

haohaoxuexi1
07-24-2016, 07:21 PM
You could use the node.center (http://docs.worldviz.com/vizard/#commands/node3d/setCenter.htm) command to change the point the objects rotates around. Or open the object in Inspector, translate the model, and then save it out again.

Ok Thanks a lot