Vizard 7 » Command Index » Vizard objects » operator » <operator:rotation>.setQuat
7.7

<operator:rotation>.setQuat

Sets the quat value of the operator.

<operator:rotation>.setQuat(  
[ x, y, z, w ]  
)  
[ x, y, z, w ]
Quaternion rotation

Remarks

If this is a rotation operator, the command will set the quaternion rotation.

Return Value

None

Example

male = viz.addAvatar( 'vcc_male.cfg' )
viewLink = viz.link( male, viz.MainView )
rotateOperator = viewLink.preEuler([0, 40, 0])
rotateOperator.setQuat([0, 0, 0, 1]) #Change rotation amount

See also

<operator:rotation>.setAxisAngle
<operator:rotation>.setEuler
<link>.postAxisAngle
<link>.postEuler
<link>.postQuat
<link>.preAxisAngle
<link>.preEuler
<link>.preQuat