Crate vleue_navigator

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/

§Bevy Supported Versions

Bevyvleue_navigatoravian
0.170.140.4
0.160.130.3
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
NavMeshDebugdebug-with-gizmos
Controls wether to display a specific NavMesh with gizmos, and the color used.
NavMeshesDebugdebug-with-gizmos
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_layer_gizmodebug-with-gizmos
Display a layer with gizmos.
display_mesh_gizmodebug-with-gizmos
Display a mesh with gizmos.
display_navmeshdebug-with-gizmos
System displaying navmeshes using gizmos for debug purposes.
display_polygon_gizmodebug-with-gizmos
Display a layer with gizmos.