name | type | description |
---|---|---|
collided | boolean |
Have the pair collided or not? |
bodyA | MatterJS.BodyType |
A reference to the first body involved in the collision. |
bodyB | MatterJS.BodyType |
A reference to the second body involved in the collision. |
axisBody | MatterJS.BodyType |
A reference to the dominant axis body. |
axisNumber | number |
The index of the dominant collision axis vector (edge normal) |
depth | number |
The depth of the collision on the minimum overlap. |
parentA | MatterJS.BodyType |
A reference to the parent of Body A, or to Body A itself if it has no parent. |
parentB | MatterJS.BodyType |
A reference to the parent of Body B, or to Body B itself if it has no parent. |
normal | MatterJS.Vector |
The collision normal, facing away from Body A. |
tangent | MatterJS.Vector |
The tangent of the collision normal. |
penetration | MatterJS.Vector |
The penetration distances between the two bodies. |
supports | Array.<MatterJS.Vector> |
An array of support points, either exactly one or two points. |
inverseMass | number |
The resulting inverse mass from the collision. |
friction | number |
The resulting friction from the collision. |
frictionStatic | number |
The resulting static friction from the collision. |
restitution | number |
The resulting restitution from the collision. |
slop | number |
The resulting slop from the collision. |