playcanvas-opti-pixel - v1.3.1
    Preparing search index...

    Class AbsAABBStoreAbstract

    Shared CPU AABB store: index pool, packed centers/halves, lock/update/get. Subclasses own the backing arrays and optional GPU textures.

    Hierarchy (View Summary)

    Implements

    Index
    • Enqueues an update for a bounding box

      Parameters

      • index: number

        Index of the bounding box to update

      • boundingBox: BoundingBox

        New bounding box data

      • Optionalmatrix: Mat4

        Optional transformation matrix

      • extra1: number = 0

        Extra parameter 1

      • extra2: number = 0

        Extra parameter 2

      Returns boolean

    • Enqueues an update for a bounding box stored as min/max scalars

      Parameters

      • index: number

        Index of the bounding box to update

      • data: ArrayLike<number>

        The array containing the bounding box data (min and max points) in local or world coordinates [minX, maxX, minY, maxY, minZ, maxZ]

      • offset: number

        The offset in the array where the bounding box data starts

      • Optionalmatrix: Mat4

        Optional transformation matrix

      • extra1: number = 0

        Extra parameter 1

      • extra2: number = 0

        Extra parameter 2

      Returns boolean

    • Gets the bounding box data by its index

      Parameters

      • index: number

        Index of the bounding box

      • boundingBox: BoundingBox

        Bounding box object to store the result

      Returns BoundingBox

      The bounding box

    • Gets the transformation matrix data for a bounded box

      Parameters

      • index: number

        Index of the bounding box

      • matrixData: Float32Array

        Float32Array to store the matrix data

      Returns void

    • Locks a bounding box and returns its index

      Parameters

      • boundingBox: BoundingBox

        The bounding box to lock

      • Optionalmatrix: Mat4

        Optional transformation matrix

      • extra1: number = 0

        Extra parameter 1 (usage depends on implementation)

      • extra2: number = 0

        Extra parameter 2 (usage depends on implementation)

      Returns number

      Index of the locked bounding box

    • Locks a bounding box using min and max scalar values and returns its index

      Parameters

      • data: ArrayLike<number>

        The array containing the bounding box data (min and max points) in local or world coordinates [minX, maxX, minY, maxY, minZ, maxZ]

      • offset: number

        The offset in the array where the bounding box data starts

      • Optionalmatrix: Mat4

        Optional transformation matrix

      • Optionalextra1: number

        Extra parameter 1 (usage depends on implementation)

      • Optionalextra2: number

        Extra parameter 2 (usage depends on implementation)

      Returns number

      Index of the locked bounding box

    • Unlocks a bounding box by its index

      Parameters

      • index: number

        Index of the bounding box to unlock

      Returns void

    • Updates the stored data and synchronizes it across all sources when needed, including CPU, GPU, and any other backing representations.

      Returns void