Skip to main content

Module walkability

Module walkability 

Source
Expand description

Walkability query utilities for pathfinding.

Convenience functions that combine spatial neighbor queries with walkability filtering. Mirrors Agents.jl Pathfinding.nearby_walkable and Pathfinding.random_walkable.

These functions operate on raw grid data (walkability arrays and dimensions) rather than depending on specific space types, keeping the pathfinding crate independent.

Functionsยง

nearby_walkable
Returns all walkable grid cells within Chebyshev radius r of pos.
random_walkable
Returns a random walkable grid cell, or None if none exist.
random_walkable_continuous
Returns a random walkable continuous position within the space.
random_walkable_continuous_nearby
Returns a random walkable continuous position within Euclidean radius r of pos.
random_walkable_nearby
Returns a random walkable grid cell within Chebyshev radius r of pos.