FMeshCollisionNaming
UE's collision sub-mesh naming convention, and the only way an artist can say "this is collision" from inside the DCC. All four prefixes name the primitive the sub-mesh stands for; reading UCX_ alone meant the box, sphere or capsule someone drew around a prop arrived as a second, visible prop inside the first.
- Module
- Physics
- Header
#include "Physics/MeshCollision.h"- Namespace
Mowo
It lives beside the sidecar for the same reason the sidecar does: the import, the collider defaults and the cook all have to agree on which sub-meshes are geometry, and they cannot include each other's headers.
Public functions
| Returns | Name | Description |
|---|---|---|
bool | Classify | |
bool | IsCollisionNode | |
FMeshCollisionPrimitive | PrimitiveFromBounds | The primitive a named sub-mesh stands for, sized from the box that sub-mesh occupies. |
Function details
Classify
static bool Classify(const std::string& nodeName, EMeshCollisionShape& outShape)IsCollisionNode
static bool IsCollisionNode(const std::string& nodeName)PrimitiveFromBounds
static FMeshCollisionPrimitive PrimitiveFromBounds(EMeshCollisionShape shape, const std::string& name, const Vec3& boundsMin, const Vec3& boundsMax)The primitive a named sub-mesh stands for, sized from the box that sub-mesh occupies. A UBX_/USP_/UCP_ piece is drawn as that shape in the DCC, so its own bounds ARE the authored dimensions; Convex is not sized here because a hull keeps its point cloud rather than collapsing to a box.