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
()
Methods
get
(
Number
-
i
-
j
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