ClothingMeshUtils::SkinPhysicsMesh

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).

Windows
MacOS
Linux

References

Module

ClothingSystemRuntimeCommon

Header

/Engine/Source/Runtime/ClothingSystemRuntimeCommon/Public/Utils/ClothingMeshUtils.h

Include

#include "Utils/ClothingMeshUtils.h"

Source

/Engine/Source/Runtime/ClothingSystemRuntimeCommon/Private/Utils/ClothingMeshUtils.cpp

Syntax

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
    )
}

Remarks

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss