UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ChaosScene.cpp File Reference

Functions

 DECLARE_CYCLE_STAT (TEXT("Update Kinematics On Deferred SkelMeshes"), STAT_UpdateKinematicsOnDeferredSkelMeshesChaos, STATGROUP_Physics)
 
 CSV_DEFINE_CATEGORY (ChaosPhysics, true)
 
 CSV_DEFINE_CATEGORY (AABBTreeExpensiveStats, false)
 
 DECLARE_DWORD_ACCUMULATOR_STAT (TEXT("NumDirtyAABBTreeElements"), STAT_ChaosCounter_NumDirtyAABBTreeElements, STATGROUP_ChaosCounters)
 
 DECLARE_DWORD_ACCUMULATOR_STAT (TEXT("NumDirtyGridOverflowElements"), STAT_ChaosCounter_NumDirtyGridOverflowElements, STATGROUP_ChaosCounters)
 
 DECLARE_DWORD_ACCUMULATOR_STAT (TEXT("NumDirtyElementsTooLargeForGrid"), STAT_ChaosCounter_NumDirtyElementsTooLargeForGrid, STATGROUP_ChaosCounters)
 
 DECLARE_DWORD_ACCUMULATOR_STAT (TEXT("NumDirtyNonEmptyCellsInGrid"), STAT_ChaosCounter_NumDirtyNonEmptyCellsInGrid, STATGROUP_ChaosCounters)
 
void GetAABBTreeStats (Chaos::ISpatialAccelerationCollection< Chaos::FAccelerationStructureHandle, Chaos::FReal, 3 > &Collection, Chaos::AABBTreeStatistics &OutAABBTreeStatistics, Chaos::AABBTreeExpensiveStatistics &OutAABBTreeExpensiveStatistics)
 

Variables

TAutoConsoleVariable< int32CVar_ChaosSimulationEnable (TEXT("P.Chaos.Simulation.Enable"), 1, TEXT("Enable / disable chaos simulation. If disabled, physics will not tick."))
 
TAutoConsoleVariable< int32CVar_ApplyProjectSettings (TEXT("p.Chaos.Simulation.ApplySolverProjectSettings"), 1, TEXT("Whether to apply the solver project settings on spawning a solver"))
 

Function Documentation

◆ CSV_DEFINE_CATEGORY() [1/2]

CSV_DEFINE_CATEGORY ( AABBTreeExpensiveStats  ,
false   
)

◆ CSV_DEFINE_CATEGORY() [2/2]

CSV_DEFINE_CATEGORY ( ChaosPhysics  ,
true   
)

◆ DECLARE_CYCLE_STAT()

◆ DECLARE_DWORD_ACCUMULATOR_STAT() [1/4]

DECLARE_DWORD_ACCUMULATOR_STAT ( TEXT("NumDirtyAABBTreeElements")  ,
STAT_ChaosCounter_NumDirtyAABBTreeElements  ,
STATGROUP_ChaosCounters   
)

◆ DECLARE_DWORD_ACCUMULATOR_STAT() [2/4]

DECLARE_DWORD_ACCUMULATOR_STAT ( TEXT("NumDirtyElementsTooLargeForGrid")  ,
STAT_ChaosCounter_NumDirtyElementsTooLargeForGrid  ,
STATGROUP_ChaosCounters   
)

◆ DECLARE_DWORD_ACCUMULATOR_STAT() [3/4]

DECLARE_DWORD_ACCUMULATOR_STAT ( TEXT("NumDirtyGridOverflowElements")  ,
STAT_ChaosCounter_NumDirtyGridOverflowElements  ,
STATGROUP_ChaosCounters   
)

◆ DECLARE_DWORD_ACCUMULATOR_STAT() [4/4]

DECLARE_DWORD_ACCUMULATOR_STAT ( TEXT("NumDirtyNonEmptyCellsInGrid")  ,
STAT_ChaosCounter_NumDirtyNonEmptyCellsInGrid  ,
STATGROUP_ChaosCounters   
)

◆ GetAABBTreeStats()

void GetAABBTreeStats ( Chaos::ISpatialAccelerationCollection< Chaos::FAccelerationStructureHandle, Chaos::FReal, 3 > &  Collection,
Chaos::AABBTreeStatistics OutAABBTreeStatistics,
Chaos::AABBTreeExpensiveStatistics OutAABBTreeExpensiveStatistics 
)

Variable Documentation

◆ CVar_ApplyProjectSettings

TAutoConsoleVariable< int32 > CVar_ApplyProjectSettings(TEXT("p.Chaos.Simulation.ApplySolverProjectSettings"), 1, TEXT("Whether to apply the solver project settings on spawning a solver")) ( TEXT("p.Chaos.Simulation.ApplySolverProjectSettings")  ,
,
TEXT("Whether to apply the solver project settings on spawning a solver"  
)

◆ CVar_ChaosSimulationEnable

TAutoConsoleVariable< int32 > CVar_ChaosSimulationEnable(TEXT("P.Chaos.Simulation.Enable"), 1, TEXT("Enable / disable chaos simulation. If disabled, physics will not tick.")) ( TEXT("P.Chaos.Simulation.Enable")  ,
,
TEXT("Enable / disable chaos simulation. If disabled, physics will not tick."  
)