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

<node3d>.setAxisAngle

Set Axis-Angle roation of the node.

<node3d>.setAxisAngle(  
[x,y,z,degree]  
mode = viz.ABS_PARENT # Positional argument
)  
[x,y,z,degree]
The axis and degrees to rotate about
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

Use this command to specify the rotation of the node using axis-angle notation. The first 3 values of the rotation specify an axis vector. The fourth value represents the amount of rotation in degrees. Vizard uses a left-handed coordinate system to specify rotations.

Return Value

None

See also

<node3d>.setEuler
<node3d>.setMatrix
<node3d>.setQuat
<node3d>.lookAt