class

FFractureBake

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

Public functions

ReturnsNameDescription
const char*Extension
const char*RootType
std::vector<FFracturePiece>FracturePiecesForColliderThe one carve the live path and the bake share: hull/mesh colliders fracture their point cloud, spheres a fibonacci shell, everything else (and any degenerate input) the box.
boolBake
std::vector<uint8_t>EncodePiecesBinary piece payload: face polygons verbatim, so the runtime rebuilds both the convex hull and the render mesh from the shipped data with the same helpers the live path uses.
boolDecodePieces
uint32_tChunkSetIdOf
std::stringSerializeToMdf
boolParseFromMdf
boolLoadFromVfs

Function details

Extension

C++
static const char* Extension()

RootType

C++
static const char* RootType()

FracturePiecesForCollider

C++
static std::vector<FFracturePiece> FracturePiecesForCollider(const ColliderComponent* collider, uint32_t pieceCount, uint32_t seed, std::string* outSourceShape = nullptr, Vec3* outHalfExtents = nullptr)

The one carve the live path and the bake share: hull/mesh colliders fracture their point cloud, spheres a fibonacci shell, everything else (and any degenerate input) the box. Kept in one place so a baked prop and an unbaked one shatter identically for the same seed.

Bake

C++
static bool Bake(const ColliderComponent* collider, uint32_t pieceCount, uint32_t seed, FFractureBakeData& out)

EncodePieces

C++
static std::vector<uint8_t> EncodePieces(const std::vector<FFracturePiece>& pieces)

Binary piece payload: face polygons verbatim, so the runtime rebuilds both the convex hull and the render mesh from the shipped data with the same helpers the live path uses.

DecodePieces

C++
static bool DecodePieces(const std::vector<uint8_t>& blob, std::vector<FFracturePiece>& out)

ChunkSetIdOf

C++
static uint32_t ChunkSetIdOf(const std::vector<uint8_t>& payload)

SerializeToMdf

C++
static std::string SerializeToMdf(const FFractureBakeData& data, const std::string& name)

ParseFromMdf

C++
static bool ParseFromMdf(const std::string& text, FFractureBakeData& out, std::string* outError = nullptr)

LoadFromVfs

C++
static bool LoadFromVfs(const std::string& path, FFractureBakeData& out, std::string* outError = nullptr)
Generated from Destruction/FractureBake.h via destruction.json · Oct 26, 2026Version 1.0.0