Skip to main content

flatland_pathfinding/
lib.rs

1//! Grid A* pathfinding shared by the gfx client and region sim (hired workers).
2
3mod grid;
4mod mode;
5mod path;
6mod session;
7mod z_nav;
8
9pub use grid::{
10    circles_from_placed_containers, circles_from_views, collides_player_at, snap_nav_goal,
11    terrain_cost, terrain_is_impassable, terrain_kind_view_from_id, terrain_move_speed_mult,
12    NavBlockingCircle, NavWorld, TerrainKindNavParams, TerrainNavTable, DEFAULT_COST,
13    DEFAULT_PLACED_PROP_BLOCK_RADIUS_M, PATH_CLEARANCE_M, PLAYER_RADIUS_M,
14};
15pub use mode::PathMode;
16pub use path::{find_path, find_path_with_goal_z};
17pub use session::{
18    effective_move_speed_mps, PathSession, PathSteer, ARRIVE_RADIUS_M, DEX_MOVE_COEFF,
19    WAYPOINT_RADIUS_M,
20};
21pub use z_nav::{
22    cell_walkable_for_path, goal_z_for, is_walkable_at_z, transition_vertical, Z_LEVEL_TOLERANCE,
23};