phaser - v4.0.0-rc.4
    Preparing search index...
    type MatterCollisionData = {
        axisBody: MatterJS.BodyType;
        axisNumber: number;
        bodyA: MatterJS.BodyType;
        bodyB: MatterJS.BodyType;
        collided: boolean;
        depth: number;
        friction: number;
        frictionStatic: number;
        inverseMass: number;
        normal: MatterJS.Vector;
        parentA: MatterJS.BodyType;
        parentB: MatterJS.BodyType;
        penetration: MatterJS.Vector;
        restitution: number;
        slop: number;
        supports: MatterJS.Vector[];
        tangent: MatterJS.Vector;
    }
    Index

    Properties

    axisBody: MatterJS.BodyType

    A reference to the dominant axis body.

    axisNumber: number

    The index of the dominant collision axis vector (edge normal)

    A reference to the first body involved in the collision.

    A reference to the second body involved in the collision.

    collided: boolean

    Have the pair collided or not?

    depth: number

    The depth of the collision on the minimum overlap.

    friction: number

    The resulting friction from the collision.

    frictionStatic: number

    The resulting static friction from the collision.

    inverseMass: number

    The resulting inverse mass from the collision.

    The collision normal, facing away from Body A.

    A reference to the parent of Body A, or to Body A itself if it has no parent.

    A reference to the parent of Body B, or to Body B itself if it has no parent.

    penetration: MatterJS.Vector

    The penetration distances between the two bodies.

    restitution: number

    The resulting restitution from the collision.

    slop: number

    The resulting slop from the collision.

    supports: MatterJS.Vector[]

    An array of support points, either exactly one or two points.

    tangent: MatterJS.Vector

    The tangent of the collision normal.