Crates.io | bevy_navgraph |
lib.rs | bevy_navgraph |
version | 0.0.1 |
source | src |
created_at | 2023-05-19 18:32:07.65473 |
updated_at | 2023-05-19 18:32:07.65473 |
description | A navgraph generation plugin for bevy |
homepage | |
repository | https://github.com/Olle-Lukowski/bevy_navgraph |
max_upload_size | |
id | 869028 |
size | 6,481 |
bevy_navgraph
is a Rust crate that provides navigation graph functionality for the Bevy game engine, using the Bevy and Bevy Rapier3D crates.
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.