Vizard 7 » Command Index » Vizard objects » node3d » <node3d>.collidePlane
7.7

<node3d>.collidePlane

Creates an infinite physics plane

<node3d>.collidePlane(  
[a,b,c,d] = [0,1,0,0]  
)  
[a,b,c,d] = [0,1,0,0]
Values for the plane equation:
ax + by + cz = d

Remarks

Creates a VizPhysicsShape that collides as if it was in infinite plane. If no arguments are supplied, collidePlane creates a plane along the x and z axis. You can set the position and orientation of the plane throught the standard plane equation: a vector and a perturbation along that vector. It also possible to include keyword arguments for the VizPhysicsShape object's material properties: friction, density, hardness, bounce.

Return Value

VizPhysicsShape object

Example

ground = viz.add('tut_ground.wrl')
ground.setPosition( 0, 1, 0 )
#Create a plane along the x and z axis intersecting the y axis at 1
ground.collidePlane( 0, 1, 0, 1 )

See also

<node3d>.collideBox
<node3d>.collideCapsule
<node3d>.collideCopy
<node3d>.collideMesh
<node3d>.collideNone
<node3d>.collideSphere