Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ArrayCollisionMatrix

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

Hierarchy

  • ArrayCollisionMatrix

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

matrix

matrix: number[]

The matrix storage.

Methods

get

reset

  • reset(): void

set

  • set(bi: Body, bj: Body, value: boolean): void

setNumObjects

  • setNumObjects(n: number): void