2 unstable releases
0.2.0 | Mar 6, 2024 |
---|---|
0.1.0 | Mar 6, 2024 |
#622 in Game dev
52 downloads per month
Used in bevy_ghx_grid
29KB
580 lines
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 derivesComponent
on common structs of the crate.reflect
: Disabled by default, enabling it simply derivesReflect
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 |
Misc
Limitations:
CoordinateSystem
andDirection
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
orbevy_grid
License
Code
ghx_grid is free and open source. All code in this repository is dual-licensed under either:
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
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.
Dependencies
~0–31MB
~421K SLoC