Class ArrayCollisionMatrix

Collision "matrix". It's actually a triangular-shaped array of whether two bodies are touching this step, for reference next step

Constructors

Properties

Methods

Constructors

Properties

matrix: number[]

The matrix storage.

Methods

  • Get an element

    Parameters

    Returns number

  • Sets all elements to zero

    Returns void

  • Set an element

    Parameters

    Returns void

  • Sets the max number of objects

    Parameters

    • n: number

    Returns void