diff --git a/Cargo.toml b/Cargo.toml index 9554bfa..74764cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,6 @@ description = "A floating origin plugin for bevy" [dependencies] bevy = { version = "0.9", default_features = false } -bevy_rapier3d = { version = "0.19", optional = true } bevy_polyline = "0.4" [dev-dependencies] @@ -17,7 +16,3 @@ bevy = { version = "0.9", default_features = false, features = [ "bevy_winit", "x11", ] } - - -[features] -rapier = ["bevy_rapier3d"] diff --git a/examples/debug.rs b/examples/debug.rs new file mode 100644 index 0000000..00f714f --- /dev/null +++ b/examples/debug.rs @@ -0,0 +1,135 @@ +use bevy::prelude::*; +use big_space::{FloatingOrigin, GridCell}; + +fn main() { + App::new() + .add_plugins(DefaultPlugins.build().disable::()) + .add_plugin(big_space::FloatingOriginPlugin::::new(0.5, 0.01)) + .add_plugin(big_space::debug::FloatingOriginDebugPlugin::::default()) + .insert_resource(ClearColor(Color::BLACK)) + .add_startup_system(setup) + .add_system(movement) + .add_system(rotation) + .run() +} + +#[derive(Component)] +struct Mover; + +fn movement( + time: Res