API Docs for: 0.6.1
Show:

ArrayCollisionMatrix Class

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

Constructor

ArrayCollisionMatrix

()

Item Index

Properties

Methods

get

(
  • i
  • j
)
Number

Get an element

Parameters:

  • i Number
  • j Number

Returns:

Number:

reset

()

Sets all elements to zero

set

(
  • i
  • j
  • value
)

Set an element

Parameters:

  • i Number
  • j Number
  • value Number

setNumObjects

(
  • n
)

Sets the max number of objects

Parameters:

  • n Number

Properties

matrix

Array

The matrix storage