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

ReturnsNameDescription
uint32_tBuildAllBuilds the grids not built yet; the entity's mesh and collider become the voxel surface.
boolBuild
FVoxelDamageResultDamageA sphere of damage (world space) against every voxel solid it reaches.
voidQueueDamageQueued from gameplay (Visual Scripting, weapons) and applied by the system's tick.
voidTickBuilds, applies queued damage, ages debris out.
const FVoxelGrid*FindGrid
voidForget
voidRegisterSceneSystem

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