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

TypeNameDescription
boolenabledDefault true.
floatvoxelSizeDefault 0.1f.
boolanchorFloorPieces stay up while they touch the bottom layer; off, the largest piece stays and the rest fall. Default true.
int32_trubbleChunkCarved voxels leave as chunks this many voxels across; 0 drops them. Default 3.
floatdensityDefault 2400.0f.
floatdebrisLifetimeDefault 10.0f.
int32_tmaxDebrisDefault 64.
Vec3colorDefault Vec3(0.6f, 0.58f, 0.55f).
uint32_tvoxelsDefault 0.
uint32_tdebrisSpawnedDefault 0.
boolbuiltDefault false.
Generated from Destruction/VoxelDestructibleComponent.h via destruction.json · Oct 26, 2026Version 1.0.0