Expand description
Utilities & debug tools/plugins for manipulating grids
Modules§
- markers
- Defines markers drawn as bevy::prelude::Gizmos, useful for debugging & visualization
- view
- Components and systems to visualize 2d & 3d grids
Structs§
- Debug
Grid View2d Bundle - Add this bundle to a
bevy::prelude::Entity
with aghx_grid::cartesian::grid::CartesianGrid
if you are using a 2d cameraCamera2d
. - Debug
Grid View3d Bundle - Add this bundle to a
bevy::prelude::Entity
with aghx_grid::cartesian::grid::CartesianGrid
if you are using a 3d cameraCamera3d
. - Grid
Debug Plugin - Bevy plugin used to visualize cartesian
ghx_grid::grid::Grid
and additional debug markers created withmarkers::MarkerDespawnEvent
.
Functions§
- get_
translation_ from_ grid_ coords_ 2d - Returns a position as a
Vec2
in world units (center of the grid node) from grid coordinates accompanied by anode_size
, the size of a grid node in world units. - get_
translation_ from_ grid_ coords_ 3d - Returns a position as a
Vec3
in world units (center of the grid node) from grid coordinates accompanied by anode_size
, the size of a grid node in world units. - get_
translation_ from_ grid_ pos_ 2d - Returns a position as a
Vec2
in world units (center of the grid node) from aCartesianPosition
accompanied by anode_size
, the size of a grid node in world units. - get_
translation_ from_ grid_ pos_ 3d - Returns a position as a
Vec3
in world units (center of the grid node) from aCartesianPosition
accompanied by anode_size
, the size of a grid node in world units. - toggle_
debug_ grids_ visibilities - Toggles the debug grids visibility
- toggle_
grid_ markers_ visibilities - Toggles the debug grids visibility