Optional
options: { Optional
collision1
Optional
collision-1
Optional
collisionWhether to produce contact forces when in contact with other bodies.
true
Optional
material?: MaterialOptional material of the shape that regulates contact properties.
null
check this, the material is passed to the body, right?
Optional
type?: ShapeTypeThe type of this shape.
The body to which the shape is added to.
The local bounding sphere radius of this shape.
1
-1
Whether to produce contact forces when in contact with other bodies. Note that contacts will be generated, but they will be disabled.
true
Identifier of the Shape.
Optional material of the shape that regulates contact properties.
The type of this shape. Must be set to an int > 0 by subclasses.
Static
idStatic
typesAll the Shape types.
Readonly
BOX: 4BOX
Readonly
COMPOUND: 8COMPOUND
Readonly
CONVEXPOLYHEDRON: 16CONVEXPOLYHEDRON
Readonly
CYLINDER: 128CYLINDER
Readonly
HEIGHTFIELD: 32HEIGHTFIELD
Readonly
PARTICLE: 64PARTICLE
Readonly
PLANE: 2PLANE
Readonly
SPHERE: 1SPHERE
Readonly
TRIMESH: 256TRIMESH
Calculates the inertia in the local frame for this shape.
use abstract for these kind of methods
Base class for shapes