Static Protected _compareStatic brutecollisions
bruteForce
Static canReturns true if both supplied collision filters will allow a collision to occur.
See body.collisionFilter for more information.
true if collision can occur
canCollide
Static clearClears the detector including its list of bodies.
clear
Static collisionsEfficiently finds all collisions among all the bodies in detector.bodies using a broadphase algorithm.
Note: The specific ordering of collisions returned is not guaranteed between releases and may change for performance reasons. If a specific ordering is required then apply a sort to the resulting array.
collisions
collisions
Static createCreates a new collision detector.
Optional options: { Optional bodies?: IBody[]Optional pairs?: null | ({ table?: { [x: string]: { id?: string | undefined; bodyA?: { angle?: number | undefined; anglePrev?: number | undefined; angularSpeed?: number | undefined; angularVelocity?: number | undefined; ... 43 more ...; _original?: { ...; } | ... 1 more ... | undefined; } | undefined; ... 14 more ...; slop?: number | undefi...)A new collision detector
create
Static setGenerated using TypeDoc
The
Matter.Detectormodule contains methods for efficiently detecting collisions between a list of bodies using a broadphase algorithm.