Vizard 8 » Command Index » Vizard objects » viewpoint » <viewpoint>.collision
8.1

<viewpoint>.collision

This command turns on collision detection with the viewpoint

<viewpoint>.collision(  
state  
)  
state
Can be either viz.ON or viz.OFF

Remarks

When collision is ON, Vizard will automatically check for collisions between the viewer and the world. If the viewer collides with an object it will stop the viewer from moving past it.

Return Value

None

Example

viz.MainView.collision(viz.ON)

See also

<viewpoint>.collisionBuffer
<viewpoint>.gravity
<viewpoint>.stepSize