Vizard 8 » Command Index » Vizard objects » node3d » <node3d>.collideCapsule
8.0

<node3d>.collideCapsule

Creates a VizPhysicsShape that collides as if there was a bounding capsule around the node

<node3d>.collideCapsule(  
radius = -1  
length = -1  
node = ''  
)  
radius = -1
length = -1
node = ''

Remarks

Creates a VizPhysicsShape that collides as if there was a bounding capsule around the node. With default arguments, the bounding capsule is a close fitting as possible while preserving the capsule shape. You can encode the dimensions of the capsule if you fill in the radius and length parameters. It also possible to include keyword arguments for the VizPhysicsShape object's material properties: friction, density, hardness, bounce.

Return Value

VizPhysicsShape object.

Example

viz.phys.enable()

box = viz.add('box.wrl')
boxCollideShape = box.collideCapsule()

See also

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