<viz>.collision

This command turns on collision detection with the viewpoint

 

<viz>.collision(
    state    # ON or OFF

)

 

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.collision(viz.ON)

See also

<viz>.collisionbuffer
<viz>.gravity
<viz>.stepsize