2 unstable releases

0.2.0 Mar 6, 2024
0.1.0 Mar 6, 2024

#1089 in Game dev

Used in bevy_ghx_grid


580 lines

Ghx Grid

ghx_grid on crates.io ghx_grid on doc.rs


Structures and utilities to manipulate 2d & 3d grid data.

Cargo features

Find the list and description in ghx_grid/cargo.toml

  • bevy: Disabled by default, enabling it simply derives Component on common structs of the crate.
  • reflect: Disabled by default, enabling it simply derives Reflect on common structs of the crate.

For Bevy users

See the bevy_ghx_grid crate which uses and exposes ghx_grid, as well as additional plugins and utilities dedicated to Bevy.

Compatible Bevy versions

bevy_ghx_grid ghx_grid bevy
0.2 0.2 0.13
0.1 0.1 0.12



  • CoordinateSystem and Direction type are not yet generic enough to support much more grid types than 2d & 3d cartesian.

Why "ghx" ?

  • It serves as a namespace to avoid picking cargo names such as grid or bevy_grid



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

at your option.

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.


~420K SLoC