Expand description
Grid A* pathfinding shared by the gfx client and region sim (hired workers).
Structs§
- NavBlocking
Circle - NavWorld
- Static + dynamic obstacles for one path query.
- Path
Session - Path
Steer
Constants§
- ARRIVE_
RADIUS_ M - DEFAULT_
PLACED_ PROP_ BLOCK_ RADIUS_ M - Default nav radius when a placed prop has
blocking: truebut radius 0 in data. - DEX_
MOVE_ COEFF - Dexterity contribution to move speed (display DEX 1–100 scale).
- PATH_
CLEARANCE_ M - Extra clearance so paths don’t hug walls.
- PLAYER_
RADIUS_ M - WAYPOINT_
RADIUS_ M - Z_
LEVEL_ TOLERANCE
Functions§
- cell_
walkable_ for_ path - circles_
from_ placed_ containers - Blocking circles for placed props that have
blockingon the item template (AOI view). - circles_
from_ views - Build blocking circles from protocol views (resource nodes + living NPCs).
- collides_
player_ at - effective_
move_ speed_ mps - Effective horizontal speed (m/s) for travel ETA and worker movement.
- find_
path - Plan a path from
(from_x, from_y, from_z)to(to_x, to_y)using goal z inferred fromfrom_z. - find_
path_ with_ goal_ z - goal_
z_ for - is_
walkable_ at_ z - snap_
nav_ goal - Outdoor travel goal snapped clear of buildings, trees, NPCs, and placed props.
- transition_
vertical - Vertical intent while auto-walking (stairs).