Open topic with navigation
<viewpoint>.lookAt
Have the view look at a certain point
| <viewpoint>.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 viz.HEAD_ORI (default) or viz.BODY_ORI
Remarks
This command will rotate the view so that it is facing the given point based on its current position.
Return Value
None
Example
viz.MainView.lookAt([0,0,0])
viz.MainView.lookAt([0,0,0],mask=viz.BODY_ORI)