ColliderBox

Inherits ColliderShape.

Variables

Name

Type

Description

center

Math::vec3

The box’s center in object-space.

halfExtent

Math::vec3

The half of the box’s size on each axis (x, y and z).

rotation

Math::vec3

The box’s rotation on each axis (x, y and z) in radians.

Notes

../../_images/collider_box.png

ColliderBox defines an Oriented Bounding Box collider using a center defined in object-space, the half of each axis extent (half the size of the box) and the rotation on each axis.