PokéRogue
    Preparing search index...
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Detect collision between two bodies.

      Parameters

      • bodyA: BodyType
      • bodyB: BodyType
      • Optionalpairs: Pairs | null

        Optionally reuse collision records from existing pairs, pass null to create new records.

      Returns any

      A collision record if detected, otherwise null

      collides

    • Creates a new collision record.

      Parameters

      • bodyA: BodyType

        The first body part represented by the collision record

      • bodyB: BodyType

        The second body part represented by the collision record

      Returns any

      A new collision record

      create