Box Class
A 3d box shape.
Constructor
Item Index
Methods
Methods
getSideNormals
-
sixTargetVectors
-
quat
Get the box 6 side normals
Parameters:
-
sixTargetVectors
ArrayAn array of 6 vectors, to store the resulting side normals in.
-
quat
QuaternionOrientation to apply to the normal vectors. If not provided, the vectors will be in respect to the local frame.
Returns:
updateBoundingSphereRadius
()
Number
Computes the bounding sphere radius. The result is stored in the property .boundingSphereRadius
Returns:
updateConvexPolyhedronRepresentation
()
Updates the local convex polyhedron representation used for some collisions.
volume
()
Number
Get the volume of this shape
Returns:
Properties
boundingSphereRadius
Number
The local bounding sphere radius of this shape.
collisionResponse
Boolean
Whether to produce contact forces when in contact with other bodies. Note that contacts will be generated, but they will be disabled.
convexPolyhedronRepresentation
ConvexPolyhedron
Used by the contact generator to make contacts with other convex polyhedra for example
id
Number
Identifyer of the Shape.
type
Number
The type of this shape. Must be set to an int > 0 by subclasses.