Open topic with navigation
<node3d>.collideCapsule
Creates a VizPhysicsShape that collides as if there was a bounding capsule around the node
<node3d>.collideCapsule( |
|
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