Matter.Pairs
The Matter.Pairs
module contains methods for creating and manipulating collision pair sets.
Methods
Matter.Pairs.clear
(pairs)
Clears the given pairs structure.
Parameters
-
pairs
Pairs
Returns
Pairs
pairs
Matter.Pairs.create
(options)
Creates a new pairs structure.
Parameters
-
options
Object
Returns
Pairs
A new pairs structure
Matter.Pairs.update
(pairs, collisions, timestamp)
Updates pairs given a list of collisions.
Parameters
-
pairs
Object -
collisions
Collision[] -
timestamp
Number