class
FVoxelDestruction
The runtime of voxel destruction over a scene: builds each VoxelDestructible's grid from its collider, applies damage, spawns the debris as rigid bodies and retires it on the debris budget.
- Module
- Destruction
- Header
#include "Destruction/VoxelDestruction.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
uint32_t | BuildAll | Builds the grids not built yet; the entity's mesh and collider become the voxel surface. |
bool | Build | |
FVoxelDamageResult | Damage | A sphere of damage (world space) against every voxel solid it reaches. |
void | QueueDamage | Queued from gameplay (Visual Scripting, weapons) and applied by the system's tick. |
void | Tick | Builds, applies queued damage, ages debris out. |
const FVoxelGrid* | FindGrid | |
void | Forget | |
void | RegisterSceneSystem |
Function details
BuildAll
C++
static uint32_t BuildAll(Scene& scene)Builds the grids not built yet; the entity's mesh and collider become the voxel surface.
Build
C++
static bool Build(Scene& scene, EntityID entity)Damage
C++
static FVoxelDamageResult Damage(Scene& scene, const Vec3& worldCenter, float radius)A sphere of damage (world space) against every voxel solid it reaches.
QueueDamage
C++
static void QueueDamage(const Vec3& worldCenter, float radius)Queued from gameplay (Visual Scripting, weapons) and applied by the system's tick.
Tick
C++
static void Tick(Scene& scene, float deltaTime)Builds, applies queued damage, ages debris out.
FindGrid
C++
static const FVoxelGrid* FindGrid(Scene& scene, EntityID entity)Forget
C++
static void Forget(Scene& scene)RegisterSceneSystem
C++
static void RegisterSceneSystem()Generated from Destruction/VoxelDestruction.h via destruction.json · Oct 26, 2026Version 1.0.0