Open topic with navigation
<viewpoint>.move
Move the viewpoint the given amount in each direction
<viewpoint>.move( |
|
[x,y,z] |
mask = viz.VIEW_ORI |
) |
|
[x,y,z]
The amount to move along each axis of the local coordinate system.
mask = viz.VIEW_ORI
This specifies which orientation to move relative to. Can be one of the following:
viz.HEAD_ORI
viz.BODY_ORI
viz.VIEW_ORI
Remarks
By default, movements are made relative to the VIEW orientation, which is the composite of the HEAD and the BODY orientations. To modify this, you can change the optional mask parameter to HEAD_ORI or BODY_ORI.
Return Value
None
Example
viz.MainView.move(0,0,1) # Move 1 meter forward