Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/GeometryCollection > API/Runtime/Chaos/GeometryCollection/FGeometryCollectionConvexUtility
References
| Module | Chaos |
| Header | /Engine/Source/Runtime/Experimental/Chaos/Public/GeometryCollection/GeometryCollectionConvexUtility.h |
| Include | #include "GeometryCollection/GeometryCollectionConvexUtility.h" |
| Source | /Engine/Source/Runtime/Experimental/Chaos/Private/GeometryCollection/GeometryCollectionConvexUtility.cpp |
static void CopyChildConvexes
&40;
const FGeometryCollection &42; FromCollection,
const TArrayView< const int32 > & FromTransformIdx,
FGeometryCollection &42; ToCollection,
const TArrayView< const int32 > & ToTransformIdx,
bool bLeafOnly
&41;
Remarks
Copy convex hulls from below FromTransformIdx over to all live at ToTransformIdx. The two geometry collections can be the same but do not need to be. Note: This will also set HasCustomConvex flags for the ToTransformIdx.
Parameters
| Name | Description |
|---|---|
| FromCollection | The collection to copy from |
| FromTransformIdx | The transform indices whose child nodes should be copied from (or, if it's a leaf, the hull on the leaf will be copied instead) |
| ToCollection | The collection to copy to (can be the same as FromCollection) |
| ToTransformIdx | The transform indices whose convexes will be replaced with copies of the child convexes. Must be same length as FromTransformIdx; can be the same array. |
| bLeafOnly | If true, we will only collect convexes from leaf bones, not from clusters. |