Class ObjectCollisionMatrix

Records what objects are colliding with each other

Constructors

Properties

Methods

Constructors

Properties

matrix: Record<string, boolean>

The matrix storage.

Methods

  • get

    Parameters

    Returns boolean

  • Empty the matrix

    Returns void

  • set

    Parameters

    Returns void

  • Set max number of objects

    Parameters

    • n: number

    Returns void