Show:
API

Matter.SAT

This class is deprecated.

This module has now been replaced by Matter.Collision.

All usage should be migrated to Matter.Collision. For back-compatibility purposes this module will remain for a short term and then later removed in a future release.

The Matter.SAT module contains methods for detecting collisions using the Separating Axis Theorem.

Methods

Matter.SAT.collides

(bodyA, bodyB)
Collision deprecated

Deprecated: replaced by Collision.collides

Detect collision between two bodies using the Separating Axis Theorem.

Parameters

Returns

Collision

collision

0.18.0