struct
FCollisionMeshData
Triangle geometry pulled off a mesh asset for collision, in the asset's own unscaled space. The cooked shape is scaled at body creation instead, so ten crates at ten sizes still share one cooked mesh.
- Module
- Physics
- Header
#include "Physics/CollisionCooking.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
std::vector<Vec3> | vertices | |
std::vector<uint32_t> | indices | |
std::vector<std::vector<Vec3>> | convexPieces | Authored convex pieces — the UCX_ sub-meshes an artist drew around the model. When present, the SIMPLE collider is their union instead of one hull swallowing the whole silhouette (the difference between a doorway you can walk through and a solid block). |
std::vector<ESurfaceType> | triangleSurfaces | What each triangle and each convex piece is MADE OF, taken from the material bound to the submesh it came from. triangleSurfaces is either empty or exactly indices.size() / 3 long; empty means no material on the mesh authored a physics surface, so the whole shape answers with the collider's own — which is what every mesh did before materials could carry one. |
std::vector<ESurfaceType> | pieceSurfaces | |
PhysicsMaterial | dominantMaterial | The physics material of whichever bound material covers the most triangles. A collider that names no .physmat of its own adopts it, so "ice is slippery" is authored once on the material instead of retyped on every collider placed on top of it. False means nothing authored one and the collider keeps its inline values untouched. |
bool | hasMaterialPhysics | Default false. |
FMeshAssetMeta | authoredSetup | The mesh's own authored collision setup (.mmeshmeta) — the boxes, spheres, capsules and generated hulls someone set up in the mesh editor, plus which of the two channels they answer. It OUTRANKS both of the fields above for simple collision: without it, "simple" meant one hull swallowing the whole silhouette, which is why every prop in the engine either collided as a 0.5m box or as its full render triangles. |
bool | hasAuthoredSetup | Default false. |
std::string | cacheKey | Identity of the cooked result: the asset that produced it plus anything that changes the geometry. Empty means "do not cache" — the geometry is one-off and re-cooking it is the caller's business. |
Generated from Physics/CollisionCooking.h via physics.json · Nov 4, 2026Version 1.0.0