Module debug_plugin

Source
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§

DebugGridView2dBundle
Add this bundle to a bevy::prelude::Entity with a ghx_grid::cartesian::grid::CartesianGrid if you are using a 2d camera Camera2d.
DebugGridView3dBundle
Add this bundle to a bevy::prelude::Entity with a ghx_grid::cartesian::grid::CartesianGrid if you are using a 3d camera Camera3d.
GridDebugPlugin
Bevy plugin used to visualize cartesian ghx_grid::grid::Grid and additional debug markers created with markers::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 a node_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 a node_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 a CartesianPosition accompanied by a node_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 a CartesianPosition accompanied by a node_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