Module |
|
Header |
/Engine/Source/Runtime/ClothingSystemRuntimeCommon/Public/Utils/ClothingMeshUtils.h |
Include |
#include "Utils/ClothingMeshUtils.h" |
Source |
/Engine/Source/Runtime/ClothingSystemRuntimeCommon/Private/Utils/ClothingMeshUtils.cpp |
namespace ClothingMeshUtils
{
template<bool bInPlaceOutput, bool bRemoveScaleAndInvertPostTransform>
void CLOTHINGSYSTEMRUNTIMECOMMON_API ClothingMeshUtils::SkinPhysicsMesh
(
const TArray< int32 > & BoneMap,
const FClothPhysicalMeshData & InMesh,
const FTransform & PostTransform,
const FMatrix * InBoneMatrices,
const int32 InNumBoneMatrices,
TArray< FVector > & OutPositions,
TArray< FVector > & OutNormals,
uint32 ArrayOffset
)
}
Static method for calculating a skinned mesh result from source data The bInPlaceOutput allows us to directly populate arrays that are already allocated bRemoveScaleAndInvertPostTransform will determine if the PostTransform should be inverted and the scale removed (NvCloth uses this). It is templated to remove branches at compile time