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.
worldNormal
worldNormalNeedsUpdate
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
use abstract for these kind of methods
computeWorldNormal
A plane, facing in the Z direction. The plane has its surface at z=0 and everything below z=0 is assumed to be solid plane. To make the plane face in some other direction than z, you must put it inside a Body and rotate that body. See the demos.
Example