Matter.Grid
This class is deprecated.
This module has now been replaced by Matter.Detector
.
All usage should be migrated to Matter.Detector
or another alternative.
For back-compatibility purposes this module will remain for a short term and then later removed in a future release.
The Matter.Grid
module contains methods for creating and manipulating collision broadphase grid structures.
Methods
Matter.Grid._createActivePairsList
Generates a list of the active pairs in the grid.
Parameters
-
grid
Object
Returns
[] pairs
Matter.Grid._createBucket
Creates a bucket.
Returns
bucket
Matter.Grid._createRegion
Creates a region.
Returns
region
Matter.Grid._getBucketId
Gets the bucket id at the given position.
Returns
bucket id
Matter.Grid._getRegion
Gets the region a given body falls in for a given grid.
Returns
region
Matter.Grid._regionUnion
Finds the union of two regions.
Returns
region
Properties / Options
The following properties if specified below are for objects created by Matter.Grid.create
and may be passed to it as options
.