Show:

Matter.Pairs

The Matter.Pairs module contains methods for creating and manipulating collision pair sets.

Methods

Matter.Pairs.clear

(pairs)
Pairs

Clears the given pairs structure.

Parameters

Returns

Pairs

pairs

Matter.Pairs.create

(options)
Pairs

Creates a new pairs structure.

Parameters

Returns

Pairs

A new pairs structure

Matter.Pairs.removeOld

(pairs, timestamp)

Finds and removes pairs that have been inactive for a set amount of time.

Parameters

Matter.Pairs.update

(pairs, collisions, timestamp)

Updates pairs given a list of collisions.

Parameters

Item Index

0.13.0