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

    Class BoundingBox

    Represents an axis-aligned bounding box (AABB).

    Implements

    Index

    Constructors

    Properties

    center: Vector3D = ...

    The center of the box.

    max: Vector3D = ...

    The maximum coordinates.

    min: Vector3D = ...

    The minimum coordinates.

    type: BoundingType = BoundingType.BOX

    The type of the bounding volume.

    Methods

    • Creates a new BoundingBox that encapsulates all provided vertices.

      Parameters

      • vertices: ArrayLike<number>

        The raw vertex data [x, y, z, ...].

      Returns BoundingBox

      A new BoundingBox instance.