View Single Post
  #2  
Old 08-24-2010, 09:17 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The node.setMatrix command sets the entire transform matrix of the node, which includes position, rotation, and scale. The individual setPosition, setEuler, setScale, etc.. command only affect that specific attribute.

In your first example, the position of the object will be (0,0,10) after the call to setEuler.

In your second example, the position of the object will be (0,0,0) after the call to setMatrix, since you didn't specify a position value for the matrix.
Reply With Quote