Vizard 7 » Command Index » Vizard modules » vizact » <vizact>.headto
7.6

<vizact>.headto

Generates a head turning action

<vizact>.headto(  
[yaw,pitch,roll]  
speed = 90  
bone = 'skel_Head'  
)  
[yaw,pitch,roll]
The orientation to turn the head to. This orientation is relative to the avatars body.
speed = 90
The speed to turn the head in degrees/second
bone = 'skel_Head'
The name of the head bone

Remarks

This will generate an action that will animate the avatars head turning to a given orientation.

Return Value

An action that can be applied to any avatar object

Example

female = viz.add('vcc_female.cfg')
look_right = vizact.headto(90,0,0)
look_left = vizact.headto(-90,0,0)

female.addAction(look_right)
female.addAction(look_left)

#Female will look right then left

See also

<vizact>.animation
<vizact>.speak
<vizact>.turn
<vizact>.walkTo