Small World Engine API Reference - v0.76.20
    Preparing search index...

    Class OBB

    An Oriented Bounding Box (OBB). Essential for the Separating Axis Theorem (SAT) and precise collisions of rotated objects.

    Implements

    Index
    axes: [Vector3D, Vector3D, Vector3D] = ...

    The 3 orthogonal local axes of the OBB (X, Y, Z).

    center: Vector3D = ...

    Center of the OBB in world space.

    halfExtents: Vector3D = ...

    Half-extents of the OBB along its local axes.

    type: BoundingType = BoundingType.OBB

    The type of the bounding volume.

    • Returns the radius of a sphere that fully encloses the volume. Used for coarse broad-phase intersection tests.

      Returns number

      The broad radius.