src/shapes/Box.js:7
A 3d box shape.
calculateLocalInertiamass
target
Inherited from
Shape
but overwritten in
src/shapes/Box.js:80
mass
Number
target
Vec3
getSideNormalssixTargetVectors
quat
Defined in
src/shapes/Box.js:99
Get the box 6 side normals
sixTargetVectors
Array
An array of 6 vectors, to store the resulting side normals in.
quat
Quaternion
Orientation to apply to the normal vectors. If not provided, the vectors will be in respect to the local frame.
updateBoundingSphereRadiusInherited from
Shape:
src/shapes/Shape.js:50
Computes the bounding sphere radius. The result is stored in the property .boundingSphereRadius
updateConvexPolyhedronRepresentation
Defined in
src/shapes/Box.js:39
Updates the local convex polyhedron representation used for some collisions.
volumeInherited from
Shape:
src/shapes/Shape.js:59
Get the volume of this shape
boundingSphereRadiusInherited from
Shape:
src/shapes/Shape.js:31
The local bounding sphere radius of this shape.
collisionResponseInherited from
Shape:
src/shapes/Shape.js:37
Whether to produce contact forces when in contact with other bodies. Note that contacts will be generated, but they will be disabled.
convexPolyhedronRepresentation
Defined in
src/shapes/Box.js:26
Used by the contact generator to make contacts with other convex polyhedra for example
typeInherited from
Shape:
src/shapes/Shape.js:23
The type of this shape. Must be set to an int > 0 by subclasses.