Navigation
API > API/Plugins > API/Plugins/ChaosClothAssetEngine > API/Plugins/ChaosClothAssetEngine/FClothEngineTools
Description
Determine if skeletal meshes on two different cloth collections are compatible (one's reference skeleton is a subset of the other). If they are, determine which skeletal mesh is the superset, and calculate remap indices that can be used to remap bone indices from the subset collection to the superset skeletal mesh. Use RemapBoneIndices to apply remapping.
| Name | CalculateRemappedBoneIndicesIfCompatible |
| Type | function |
| Header File | /Engine/Plugins/ChaosClothAsset/Source/ChaosClothAssetEngine/Public/ChaosClothAsset/ClothEngineTools.h |
| Include Path | #include "ChaosClothAsset/ClothEngineTools.h" |
| Source | /Engine/Plugins/ChaosClothAsset/Source/ChaosClothAssetEngine/Private/ChaosClothAsset/ClothEngineTools.cpp |
static bool CalculateRemappedBoneIndicesIfCompatible
(
const FCollectionClothConstFacade & Cloth1,
const FCollectionClothConstFacade & Cloth2,
FSoftObjectPath & OutMergedSkeletalMeshPath,
TArray < int32 > & OutBoneIndicesRemapCloth1,
TArray < int32 > & OutBoneIndicesRemapCloth2,
FText * OutIncompatibleErrorDetails
)
Whether or not the collections are compatible
Parameters
| Name | Remarks |
|---|---|
| OutBoneIndicesRemapCloth1 | is remap indices to convert Cloth1 BoneIndices to OutMergedSkeletalMeshPath's ref skeleton. Empty if no remapping is required. |
| OutBoneIndicesRemapCloth2 | is remap indices to convert Cloth2 BoneIndices to OutMergedSkeletalMeshPath's ref skeleton. Empty if no remapping is required. |
| OutIncompatibleErrorDetails | optional text describing why the skeletal meshes aren't compatible (empty if no error). |