struct
VoxelDestructibleComponent
Voxel destruction: at play the entity's collider shape (box, sphere or mesh) becomes a grid of voxels. Damage carves spheres out of it; the carved voxels fly off as rubble chunks, and whatever no longer connects to the floor (or to the largest piece) breaks away as one physics body per piece.
- Module
- Destruction
- Header
#include "Destruction/VoxelDestructibleComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
float | voxelSize | Default 0.1f. |
bool | anchorFloor | Pieces stay up while they touch the bottom layer; off, the largest piece stays and the rest fall. Default true. |
int32_t | rubbleChunk | Carved voxels leave as chunks this many voxels across; 0 drops them. Default 3. |
float | density | Default 2400.0f. |
float | debrisLifetime | Default 10.0f. |
int32_t | maxDebris | Default 64. |
Vec3 | color | Default Vec3(0.6f, 0.58f, 0.55f). |
uint32_t | voxels | Default 0. |
uint32_t | debrisSpawned | Default 0. |
bool | built | Default false. |
Generated from Destruction/VoxelDestructibleComponent.h via destruction.json · Oct 26, 2026Version 1.0.0