Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FGeometryCollectionPhysicsProxy
Description
Traverses the parents of TransformGroupIdx counting number of levels, and sets levels array value for TransformGroupIdx and its parents if not yet initialized. If level is already set, retrieve stored level. Uninitialized level array should be correct size and defaulted to zeros.
| Name | CalculateAndSetLevel |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/PhysicsProxy/GeometryCollectionPhysicsProxy.h |
| Include Path | #include "PhysicsProxy/GeometryCollectionPhysicsProxy.h" |
| Source | /Engine/Source/Runtime/Experimental/Chaos/Private/PhysicsProxy/GeometryCollectionPhysicsProxy.cpp |
static int32 CalculateAndSetLevel
(
int32 TransformGroupIdx,
const TManagedArray < int32 > & Parent,
TManagedArray < int32 > & Levels
)