Grid plane is a Rust plugin for the Bevy game engine that allows you to add a grid plane inside your scene. This plugin provides a simple way to create a grid on 3 axes: xy
, yz
, and zx
.
xy
, yz
, and zx
.To use the bevy_grid plugin, simply add it to your Bevy app's plugin list:
```rust use bevy::prelude::*; use grid_plane::GridPlanePlugin;
fn main() { App::new() .addplugins(DefaultPlugins) .addplugin(GridPlanePlugin::default()) .run(); } ```
```rust use bevy::prelude::*; use grid_plane::{GridPlanePlugin, GridAxis};
fn main() { App::new() .addplugins(DefaultPlugins) .addplugin(GridPlanePlugin { gridaxis: GridAxis::Zx, size: 150, spacing: 1.0, color: Color::GRAY, color10: Color::CYAN, xaxiscolor: Color::RED, yaxiscolor: Color::GREEN, zaxis_color: Color::BLUE, }) .run(); } ```
The Grid Plugin comes with three example scenes to get you started: - examples/gridplanedefault.rs - examples/gridplanewithoptions.rs - examples/gridplanewithsome_options.rs
To run an example, simply navigate to the example directory and run cargo run:
| grid_plane | bevy | | ---------- | ---- | | 0.1.0 | 0.10 |
Grid plane is licensed under MIT