Show:
API

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.update

(pairs, collisions, timestamp)

Updates pairs given a list of collisions.

Parameters

0.18.0