Navigation
API > API/Runtime > API/Runtime/ClothingSystemRuntimeCommon
References
| Module | ClothingSystemRuntimeCommon |
| Header | /Engine/Source/Runtime/ClothingSystemRuntimeCommon/Public/ClothPhysicalMeshData.h |
| Include | #include "ClothPhysicalMeshData.h" |
Syntax
struct FClothPhysicalMeshData
Remarks
Spatial simulation data for a mesh.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FClothVertBoneData > | BoneData | Indices and weights for each vertex, used to skin the mesh to create the reference pose. | |
| FClothTetherData | EuclideanTethers | Long range attachment tethers, using euclidean (beeline) distance to find the closest attachment. | |
| FClothTetherData | GeodesicTethers | Long range attachment tethers, using geodesic (surface) distance to find the closest attachment. | |
| TArray< uint32 > | Indices | Indices of the simulation mesh triangles. | |
| TArray< float > | InverseMasses | Inverse mass for each vertex in the physical mesh. | |
| int32 | MaxBoneWeights | Maximum number of bone weights of any vetex. | |
| TArray< FVector3f > | Normals | Normal at each vertex. | |
| int32 | NumFixedVerts | Number of fixed verts in the simulation mesh (fixed verts are just skinned and do not simulate) | |
| TArray< uint32 > | SelfCollisionIndices | Valid indices to use for self collisions (reduced set of Indices) | |
| TArray< FColor > | VertexColors | Color at each vertex. | |
| TArray< FVector3f > | Vertices | Positions of each simulation vertex. | |
| TMap< uint32, FPointWeightMap > | WeightMaps | The weight maps, or masks, used by this mesh, sorted by their target id. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Construct an empty cloth physical mesh with default common targets. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FPointWeightMap & | AddWeightMap
(
const T Target |
Retrieve a pointer to a registered vertex weight array by unique | |
| void | BuildSelfCollisionData
(
float SelfCollisionRadius |
Build the self collision indices with the specified radius. | |
| void | Recalculate the node inverse masses. | ||
| void | Recalculate the number of influences for the bone data. | ||
| void | CalculateTethers
(
bool bUseEuclideanDistance, |
Recalculate the long range attachment tethers. | |
| void | Clear out any default weight maps and delete any other ones. | ||
| FPointWeightMap & | FindOrAddWeightMap
(
const T Target |
Retrieve a pointer to a registered vertex weight array by unique | |
| const FPointWeightMap * | FindWeightMap
(
const T Target |
Retrieve a pointer to a registered vertex weight array by unique | |
| FPointWeightMap * | FindWeightMap
(
const T Target |
Retrieve a pointer to a registered vertex weight array by unique | |
| FPointWeightMap & | GetWeightMap
(
const T Target |
Retrieve a registered vertex weight array by unique | |
| const FPointWeightMap & | GetWeightMap
(
const T Target |
Retrieve a registered vertex weight array by unique | |
| bool | HasWeightMap
(
const T Target |
Retrieve whether a vertex weight array has already been registered. | |
| void | MigrateFrom
(
FClothPhysicalMeshData& ClothPhysicalMeshData |
Migrate from same, used to migrate LOD data from the UClothLODDataCommon_Legacy. | |
| void | MigrateFrom
(
UClothPhysicalMeshDataBase_Legacy* ClothPhysicalMeshDataBase |
Migrate from the legacy physical mesh data class, used to migrate LOD data from the UClothLODDataCommon_Legacy. | |
| void | Reset
(
const int32 InNumVerts, |
Reset the default common targets for this cloth physical mesh. |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< float > | AnimDriveMultipliers_DEPRECATED | ||
| TArray< float > | BackstopDistances_DEPRECATED | ||
| TArray< float > | BackstopRadiuses_DEPRECATED | ||
| TArray< float > | MaxDistances_DEPRECATED | Deprecated. Use WeightMaps instead. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BuildSelfCollisionData
(
const TMap< FName, TObjectPtr< UClothConfigBase >>& ClothConfigs |
Use BuildSelfCollisionData(float SelfCollisionRadius) instead. | |
| void | ComputeFaceAveragedVertexNormals
(
TArray< FVector3f >& OutNormals |
This function is no longer part of this API and will soon be removed. |