PokéRogue
    Preparing search index...

    The Matter.Pair module contains methods for creating and manipulating collision pairs.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Creates a pair.

      Parameters

      Returns IPair

      A new pair

      create

    • Get the id for the given pair.

      Parameters

      Returns string

      Unique pairId

      id

    • Set a pair as active or inactive.

      Parameters

      • pair: IPair
      • isActive: boolean
      • timestamp: number

      Returns void

      setActive

    • Updates a pair given a collision.

      Parameters

      Returns void

      update