Open topic with navigation
<vizact>.turn
Generate a body turning action
<vizact>.turn( |
|
direction |
turnSpeed = 90 |
) |
|
direction
direction to face relative to North (+z)
turnSpeed = 90
Speed to turn (deg/sec)
Remarks
This will generate an action that will animate the avatar turning its body to the given orientation. The turnSpeed will control how fast the avatar turns its body.
Return Value
An action that can be applied to any avatar object
Example
female = viz.add('vcc_female.cfg')
turn_right = vizact.turn(90)
#Have the avatar turn towards the positive X direction
female.addAction(turn_right)
See also