Function findAllComponents

  • Returns every connected solid component of the bitmap, regardless of whether it is anchored to anything.

    This is just findIslands(bitmap, { kind: 'customPoints', points: [] }) (no anchors → every solid cell is in some "island"), exposed under a clearer name because the physics layer's terrain-rebuild path needs the full component list, not just the detached subset.

    Parameters

    Returns Island[]