17 releases (11 breaking)

0.12.0 Apr 12, 2024
0.10.0 Feb 19, 2024
0.9.0 Nov 5, 2023
0.7.0 May 3, 2023
0.4.0 Jul 25, 2022

#29 in Game dev

Download history 118/week @ 2023-12-25 315/week @ 2024-01-01 633/week @ 2024-01-08 1043/week @ 2024-01-15 502/week @ 2024-01-22 728/week @ 2024-01-29 360/week @ 2024-02-05 40/week @ 2024-02-12 680/week @ 2024-02-19 644/week @ 2024-02-26 876/week @ 2024-03-04 1162/week @ 2024-03-11 689/week @ 2024-03-18 823/week @ 2024-03-25 784/week @ 2024-04-01 253/week @ 2024-04-08

2,578 downloads per month
Used in 2 crates

MIT/Apache

180KB
651 lines

Bevy Infinite Grid

Simple 3D infinite grid for bevy

crates.io docs.rs Bevy tracking CI-CD

demo

Demo

Run a simple implementation of this grid by cloning this repository and running:

cargo run --example simple

Features

  • Easily spawn an infinite grid aligned to the world origin and axes
  • Spawn an unlimited number of axes aligned to arbitrary coordinate spaces

Usage

Add the plugin to the [dependencies] in Cargo.toml

bevy_infinite_grid = { git = "https://github.com/ForesightMiningSoftwareCorporation/bevy_infinite_grid", branch = "main" }

Insert the infinite grid plugin after the default plugins.

.add_plugins(InfiniteGridPlugin)

And spawn the grid to see the results.

commands.spawn(InfiniteGridBundle::new(
    materials.add(InfiniteGridMaterial::default()),
));

See the simple demo for an example of a minimal implementation.

Bevy Version Support

We intend to track the main branch of Bevy. PRs supporting this are welcome!

bevy bevy_infinite_grid
0.13 0.11, 0.12
0.12 0.10
0.11 0.8, 0.9

License

bevy_infinite_grid is free and open source! All code in this repository is dual-licensed under either:

at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Sponsors

The creation and maintenance of Bevy Infinite Grid is sponsored by Foresight Spatial Labs.

Dependencies

~40–81MB
~1M SLoC