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

    Class AABBStore

    Hierarchy

    • AbsAABBStore
      • AABBStore
    Index
    • Parameters

      • device: GraphicsDevice
      • capacity: number

      Returns AABBStore

    device: GraphicsDevice
    • get capacity(): number

      Maximum number of AABBs the store can hold.

      Returns number

    • get centersData(): Float32Array<ArrayBufferLike>

      Returns Float32Array<ArrayBufferLike>

    • get centersTexture(): Texture

      Returns Texture

    • get halfExtentsData(): Float32Array<ArrayBufferLike>

      Returns Float32Array<ArrayBufferLike>

    • get halfExtentsTexture(): Texture

      Returns Texture

    • get hasTextures(): boolean

      Returns boolean

    • get version(): number

      Increments when AABB CPU data changes (lock, update, resize).

      Returns number

    • 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

    • 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

    • Parameters

      • newCapacity: number

      Returns void

    • Unlocks a bounding box by its index

      Parameters

      • index: number

        Index of the bounding box to unlock

      Returns void