To implement the PluginBloxel
for your Minecraft-style game in Rust using Bevy, you'll need to design your WorldGrid
type along with appropriate traits, components, and systems to manage the voxel grid, entities, and interactions.
- IVec3: Already provided by Bevy for grid coordinates.
- WorldGrid: Manages the entities in the voxel grid.
- Block: Represents a 1-meter cube making up the terrain.
- NonBlockEntity: Represents non-block entities like tables, chairs, buttons, etc.
- SubGrid: Represents nested
WorldGrid
instances.