class
FCollisionShapeCache
Cooked collision shapes shared by cache key. A triangle mesh costs multiple megabytes and a measurable slice of level load to build; a hundred instances of one prop must not each cook their own copy of it. Lookup and insertion trade in Jolt shapes and live inside Physics (FCollisionShapeStore); this is the part a tool or a test can drive.
- Module
- Physics
- Header
#include "Physics/CollisionCooking.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
void | Purge | Drops every cached shape. |
size_t | Num | |
uint64_t | GetHits | |
uint64_t | GetMisses | |
void | ResetStats |
Function details
Purge
C++
static void Purge()Drops every cached shape. Shapes are refcounted, so bodies still holding one keep it alive — this only releases the cache's reference.
Num
C++
static size_t Num()GetHits
C++
static uint64_t GetHits()GetMisses
C++
static uint64_t GetMisses()ResetStats
C++
static void ResetStats()Generated from Physics/CollisionCooking.h via physics.json · Nov 4, 2026Version 1.0.0