Expand description
This library encapsulates (and re-exports) the “ghx_proc_gen” library for 2D & 3D procedural generation with Model synthesis/Wave function Collapse, for a Bevy usage. Also provide grid utilities to manipulate & debug 2d & 3d grid data with Bevy.
Re-exports§
pub use bevy_ghx_grid;pub use ghx_proc_gen as proc_gen;pub use bevy_egui;
Modules§
- assets
- Types to define and spawn assets
- debug_
plugin - Debug plugin to run the generation with different visualization options
- default_
bundles - Adds default
BundleInserterimplementations for some common types. - simple_
plugin - Simple plugin to run the generation
- spawner_
plugin - Plugin to automatically spawn generated nodes
Structs§
- Cursor
Target - Main component marker for a cursor target
- Generation
Reset Event - The generation with the specified entity was reinitialized
- Grid
Generated Event - The generation with the specified entity was fully generated
- Grid
Node - Used to mark a node spawned by a
ghx_proc_gen::generator::Generator. Stores the NodeIndex of this node - Nodes
Generated Event - The generation with the specified entity was updated on the specified node
- Void
Nodes - Component used to store model indexes of models with no assets.
Functions§
- insert_
bundle_ from_ resource_ to_ spawned_ nodes - Utility system. Adds a
Bundle(or aComponent) to everyEntitythat hasGridNodeComponent (this is the case of nodes spawned by thespawn_nodesystem). TheBundlewill be cloned from aResource - insert_
default_ bundle_ to_ spawned_ nodes - Utility system. Adds a
Bundle(or aComponent) to everyEntitythat hasGridNodeComponent (this is the case of nodes spawned by thespawn_nodesystem). TheBundlewill have its default value. - spawn_
node - Utility function to spawn grid nodes. Can work for multiple asset types.