class
FPhysicsShapeCooker
Builds Jolt shapes on the engine's job system at background priority, so a streaming world's colliders no longer cost the game thread their hull and BVH builds. Inputs are copied, the caller's buffers are free on return. Needs the physics runtime initialised (the allocators), not a PhysicsWorld.
- Module
- Physics
- Header
#include "Physics/PhysicsShapeCook.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
FPhysicsShapeCookTicket | CookTriangleMesh | |
FPhysicsShapeCookTicket | CookConvexHull | |
FPhysicsShapeCookTicket | CookCompound | |
FPhysicsShapeCookTicket | CookVoxelChunk | |
FPhysicsPreparedShape | BuildTriangleMesh | The same builds on the calling thread, for the places that need the shape now. |
FPhysicsPreparedShape | BuildConvexHull | |
FPhysicsPreparedShape | BuildCompound | |
FPhysicsPreparedShape | BuildVoxelChunk |
Function details
CookTriangleMesh
C++
static FPhysicsShapeCookTicket CookTriangleMesh(std::vector<Vec3> vertices, std::vector<uint32_t> indices)CookConvexHull
C++
static FPhysicsShapeCookTicket CookConvexHull(std::vector<Vec3> points)CookCompound
C++
static FPhysicsShapeCookTicket CookCompound(std::vector<FPhysicsCompoundPart> parts)CookVoxelChunk
C++
static FPhysicsShapeCookTicket CookVoxelChunk(FVoxelColliderDesc desc)BuildTriangleMesh
C++
static FPhysicsPreparedShape BuildTriangleMesh(const std::vector<Vec3>& vertices, const std::vector<uint32_t>& indices)The same builds on the calling thread, for the places that need the shape now.
BuildConvexHull
C++
static FPhysicsPreparedShape BuildConvexHull(const std::vector<Vec3>& points)BuildCompound
C++
static FPhysicsPreparedShape BuildCompound(const std::vector<FPhysicsCompoundPart>& parts)BuildVoxelChunk
C++
static FPhysicsPreparedShape BuildVoxelChunk(const FVoxelColliderDesc& desc)Generated from Physics/PhysicsShapeCook.h via physics.json · Nov 4, 2026Version 1.0.0