Creates a physics shape around the node
| <node3d>.collideBox( | |
| [width,height,depth] | |
| node = '' |
)
[width,height,depth]
The size of the box
node = ''
Subnode to use for auto-calculating bounding box.
Creates a VizPhysicsShape that collides as if there was a bounding box around the node. With default arguments, the bounding box is a close fitting as possible while preserving the box shape. You can encode the dimensions of the box if you fill in the x, y, and z parameters. It also possible to include keyword arguments for the VizPhysicsShape object's material properties: friction, density, hardness, bounce.
VizPhysicsShape object
<node3d>.collideCapsule
<node3d>.collideCopy
<node3d>.collideMesh
<node3d>.collideNone
<node3d>.collidePlane
<node3d>.collideSphere