The Matter.Pairs module contains methods for creating and manipulating collision pair sets.

Hierarchy

  • default

Constructors

Methods

Constructors

Methods

  • Creates a new pairs structure.

    Parameters

    • Optional options: {
          collisionActive?: IPair[];
          collisionEnd?: IPair[];
          collisionStart?: IPair[];
          list?: IPair[];
          table?: { [x: string]: { id?: string | undefined; bodyA?: { angle?: number | undefined; anglePrev?: number | undefined; angularSpeed?: number | undefined; angularVelocity?: number | undefined; area?: number | undefined; ... 42 more ...; _original?: { ...; } | ... 1 more ... | undefined; } | undefined; ... 14 more ...; slop?...;
      }
      • Optional collisionActive?: IPair[]
      • Optional collisionEnd?: IPair[]
      • Optional collisionStart?: IPair[]
      • Optional list?: IPair[]
      • Optional table?: { [x: string]: { id?: string | undefined; bodyA?: { angle?: number | undefined; anglePrev?: number | undefined; angularSpeed?: number | undefined; angularVelocity?: number | undefined; area?: number | undefined; ... 42 more ...; _original?: { ...; } | ... 1 more ... | undefined; } | undefined; ... 14 more ...; slop?...

    Returns IPairs

    A new pairs structure

    Method

    create

  • Updates pairs given a list of collisions.

    Parameters

    Returns void

    Method

    update

Generated using TypeDoc