class

FCollisionMeshProvider

The seam that lets Physics cook collision from a mesh asset without reaching up into Game: Game installs a resolver at image load, Physics calls it at body creation. A null resolver simply means no mesh colliders resolve — never a crash — which is also what a headless physics-only host wants.

Module
Physics
Header
#include "Physics/CollisionCooking.h"
Namespace
Mowo

Type aliases

AliasDescription
using FKeyResolver = bool (*)(World* world, uint64_t entityId, const std::string& assetPath, std::string& outKey)Two steps on purpose. Naming what WOULD be cooked is a string lookup; producing the geometry is a copy of the whole mesh. Splitting them means the hundredth instance of a prop pays the string and stops there.
using FGeometryResolver = bool (*)(World* world, uint64_t entityId, const std::string& assetPath, FCollisionMeshData& out)

Public functions

ReturnsNameDescription
voidSetResolver
voidClearCall on module unload.
boolHasResolver
FKeyResolverGetKeyResolverSo a caller that installs its own resolver (a self-test, a tool host) can put the real one back instead of leaving the process without one.
FGeometryResolverGetGeometryResolver
boolResolveKey
boolResolveGeometry

Function details

SetResolver

C++
static void SetResolver(FKeyResolver keyResolver, FGeometryResolver geometryResolver)

Clear

C++
static void Clear()

Call on module unload. The resolver is code inside the installing image; leaving the pointer behind after that image goes away is a call into freed memory the next time a mesh collider spawns.

HasResolver

C++
static bool HasResolver()

GetKeyResolver

C++
static FKeyResolver GetKeyResolver()

So a caller that installs its own resolver (a self-test, a tool host) can put the real one back instead of leaving the process without one.

GetGeometryResolver

C++
static FGeometryResolver GetGeometryResolver()

ResolveKey

C++
static bool ResolveKey(World* world, uint64_t entityId, const std::string& assetPath, std::string& outKey)

ResolveGeometry

C++
static bool ResolveGeometry(World* world, uint64_t entityId, const std::string& assetPath, FCollisionMeshData& out)
Generated from Physics/CollisionCooking.h via physics.json · Nov 4, 2026Version 1.0.0