Vizard 7 » Command Index » Vizard objects » node3d » <node3d>.setEuler
7.7

<node3d>.setEuler

Sets the euler rotation of a node.

<node3d>.setEuler(  
[yaw,pitch,roll]  
mode = viz.ABS_PARENT # Positional argument
)  
[yaw,pitch,roll]
The euler rotation
mode = viz.ABS_PARENT
Can be one of the following:

Transform modes

viz.ABS_PARENT

Perform the transformation absolutely in the parents coordinate system.

viz.ABS_GLOBAL

Perform the transformation absolutely in world coordinates.

viz.REL_LOCAL
viz.ABS_LOCAL

Perform the transformation in the objects local coordinates system.

viz.REL_PARENT

Perform the transformation relatively in the parents coordinate system.

viz.REL_GLOBAL

Perform the transformation relatively in the global coordinate system.

Remarks

This command applies a rotation to the node in euler notation. Yaw specifies the rotation around the Y-axis. Pitch specifies the rotation around the X-axis. Roll specifies the rotation around the Z-axis. The rotations are in degrees and applied in the order specified. Vizard uses a left-handed coordinate system.

Return Value

None

See also

<node3d>.setAxisAngle
<node3d>.setMatrix
<node3d>.setQuat
<node3d>.lookAt