Crate vleue_navigator

Source
Expand description

MIT/Apache 2.0 Release Doc Crate

Navigation mesh for Bevy using Polyanya.

map with many points finding their paths

Check out the WASM demos

§Usage

§From a prebuilt NavMesh

Loading a mesh from a gLTF file, then building a NavMesh from it and using it for getting paths. See gltf.rs and NavMesh::from_bevy_mesh.

§From obstacle components

Spawn entities marked as obstacles, create the NavMesh live from them. See auto_navmesh_aabb and NavMeshUpdaterPlugin.

§Example videos

Pathfinding many agents.

Parameters for NavMesh generation

§Reading list

Pathfinding:

NavMesh building:

§To Implement

  • Steering Behaviors For Autonomous Characters https://www.red3d.com/cwr/steer/
  • A Generic Solution to Polygon Clipping https://dl.acm.org/doi/pdf/10.1145/129902.129906
  • Polygon Offsetting by Computing Winding Numbers https://mcmains.me.berkeley.edu/pubs/DAC05OffsetPolygon.pdf

§Bevy Supported Versions

Bevyvleue_navigatoravian
0.150.11.10.2
0.140.100.1
0.130.7x

Modules§

asset_loaders
Asset loaders that can load a NavMesh from a file
prelude
Prelude for imports

Structs§

NavMesh
A navigation mesh
NavMeshDebug
Controls wether to display a specific NavMesh with gizmos, and the color used.
NavMeshesDebug
Controls wether to display all NavMeshes with gizmos, and the color used.
Path
A path between two points.
TransformedPath
A path between two points, in 3D space, transformed using NavMesh::transform.
Triangulation
An helper to create a Mesh from a list of edges and obstacle, using a constrained Delaunay triangulation.
VleueNavigatorPlugin
Bevy plugin to add support for the NavMesh asset type.

Functions§

display_navmesh
System displaying navmeshes using gizmos for debug purposes.