Body, Mind & Soul — API Reference
    Preparing search index...

    Function gridDistanceBetween

    • Return the grid distance (in squares) between two actors' placed tokens on the current scene. Returns Infinity if either actor lacks a placed token.

      Uses the nearest-edge-to-nearest-edge metric by sampling token corners, matching Foundry's canonical multi-square distance behavior.

      Parameters

      • actorA: Actor
      • actorB: Actor

      Returns number