Skip to content

Matter.detector

dong edited this page Nov 8, 2016 · 1 revision

Matter.Detector

检测器,用于检测碰撞

方法 Methods

Matter.Detector.canCollide(filterA, filterB)

创建拘束并且返回constraint对象

Matter.Detector.canCollide(filterA, filterB)

如果给定的冲突过滤器都计算到碰撞会发生则返回true(待确定)。更多信息请查看body.collisionFilter

Matter.Detector.collisions(broadphasePairs, engine)

从给定的列表里寻找所有的冲突

Clone this wiki locally