bevy_navgraph

Crates.iobevy_navgraph
lib.rsbevy_navgraph
version0.0.1
sourcesrc
created_at2023-05-19 18:32:07.65473
updated_at2023-05-19 18:32:07.65473
descriptionA navgraph generation plugin for bevy
homepage
repositoryhttps://github.com/Olle-Lukowski/bevy_navgraph
max_upload_size
id869028
size6,481
Olle Lukowski (Olle-Lukowski)

documentation

README

bevy_navgraph

bevy_navgraph is a Rust crate that provides navigation graph functionality for the Bevy game engine, using the Bevy and Bevy Rapier3D crates.

Usage

To use bevy_navgraph, you must have the following dependencies in your Cargo.toml file:

[dependencies]
bevy = "0.10.1"
bevy_rapier3d = "0.21.0"
bevy_navgraph = "0.0.1"

Also, please make sure the Rapier plugin is added to your app.

use bevy::prelude::*;
use bevy_navgraph::NavGraphPlugin;

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_plugin(RapierPhysicsPlugin::<NoUserData>::default())
        .add_plugin(NavGraphPlugin { starting_position: Vec3::new(0.0, 0.0, 0.0),   max_bounces: 5, splits_per_bounce: 5})
        .run();
}

For bevy_navgraph to work, you need to have colliders in your world.

Commit count: 2

cargo fmt