Vizard 7 » Command Index » Vizard objects » bone » <bone>.lookAt
7.7

<bone>.lookAt

Have the bone look at a certain point

<bone>.lookAt(  
point  
roll = 0.0  
mode = viz.ABS_PARENT  
)  
point
The [x,y,z] point the object should face.
roll = 0.0
The roll amount to apply to the rotation, in degrees.
mode = viz.ABS_PARENT
Can be one of the following:

Transform modes

viz.ABS_PARENT

Perform the transformation absolutely in the bones local coordinate system.

viz.ABS_GLOBAL

Perform the transformation absolutely in the bones global coordinate system.

viz.ABS_LOCAL
viz.REL_LOCAL

Perform the transformation relatively in the bones local coordinates system.

viz.REL_PARENT

Perform the transformation relatively in parent bones coordinate system.

viz.REL_GLOBAL

Perform the transformation relatively in bones global coordinate system.

viz.AVATAR_LOCAL

Perform the transformation absolutely in the avatars local coordinate system.

viz.AVATAR_WORLD

Perform the transformation absolutely in the avatars global coordinate system.

Remarks

This command will rotate the bone so that it is facing the given point based on its current position.

Note: The bone must be locked in order to apply manual rotations

Return Value

None

See also

<bone>.lock
<bone>.unlock