class

FVoronoiFracture

Module
Destruction
Header
#include "Destruction/VoronoiFracture.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
std::vector<FFracturePiece>FractureBox
std::vector<FFracturePiece>FractureMeshPointsFracture an arbitrary point cloud (mesh vertices, hull collider points): the convex hull of the points becomes the fractured volume, Voronoi seeds are rejection-sampled inside it, and the same bisector clipping carves the cells.
TerrainChunkMeshBuildFracturePieceMesh
voidCollectPieceHullVertices
uint32_tNextRandomThe PCG stream the carve seeds with, exposed so a replayed break draws its per-piece launch jitter from the same integer generator on every peer — a platform's rand() would land the same seed on different shards.
floatNextFloat01

Function details

FractureBox

C++
static std::vector<FFracturePiece> FractureBox(const Vec3& halfExtents, uint32_t pieceCount, uint32_t seed)

FractureMeshPoints

C++
static std::vector<FFracturePiece> FractureMeshPoints(const std::vector<Vec3>& points, uint32_t pieceCount, uint32_t seed)

Fracture an arbitrary point cloud (mesh vertices, hull collider points): the convex hull of the points becomes the fractured volume, Voronoi seeds are rejection-sampled inside it, and the same bisector clipping carves the cells. Non-convex meshes fracture as their convex hull (the industry-standard debris approximation). Needs >= 4 non-coplanar points; returns empty on degenerate input.

BuildFracturePieceMesh

C++
static TerrainChunkMesh BuildFracturePieceMesh(const FFracturePiece& piece, const Vec4& color)

CollectPieceHullVertices

C++
static void CollectPieceHullVertices(const FFracturePiece& piece, std::vector<Vec3>& outVertices)

NextRandom

C++
static uint32_t NextRandom(uint32_t& state)

The PCG stream the carve seeds with, exposed so a replayed break draws its per-piece launch jitter from the same integer generator on every peer — a platform's rand() would land the same seed on different shards.

NextFloat01

C++
static float NextFloat01(uint32_t& state)
Generated from Destruction/VoronoiFracture.h via destruction.json · Oct 26, 2026Version 1.0.0