The body to which the shape is added to.
The local bounding sphere radius of this shape.
Whether to produce contact forces when in contact with other bodies. Note that contacts will be generated, but they will be disabled.
Used by the contact generator to make contacts with other convex polyhedra for example.
The half extents of the box.
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.
All the Shape types.
calculateWorldAABB
forEachWorldCorner
Get the box 6 side normals
An array of 6 vectors, to store the resulting side normals in.
Orientation to apply to the normal vectors. If not provided, the vectors will be in respect to the local frame.
updateBoundingSphereRadius
Updates the local convex polyhedron representation used for some collisions.
Returns the volume of the box.
A 3d box shape.