Show:

Matter.Detector

The Matter.Detector module contains methods for detecting collisions given a set of pairs.

Methods

Matter.Detector.canCollide

(filterA, filterB)
→ Bool

Returns true if both supplied collision filters will allow a collision to occur. See body.collisionFilter for more information.

Parameters

Returns

Bool

true if collision can occur

Matter.Detector.collisions

(broadphasePairs, engine)
Array

Finds all collisions given a list of pairs.

Parameters

Returns

Array

collisions

Item Index

0.13.0