<viz>.lookAt

Have the main view look at a certain point

 

<viz>.lookAt(
    point    
    roll = 0.0    
    mask = viz.HEAD_ORI    

)

 

point

The [x,y,z] point the view should face.


roll = 0.0

The roll amount to apply to the rotation, in degrees.


mask = viz.HEAD_ORI

This can be either HEAD_ORI (default) or BODY_ORI


Remarks

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

Return Value

None

Example

viz.lookAt([0,0,0])
viz.lookAt([0,1,0],45) #Look at [0,1,0] and tilt the head 45 degrees.