UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ClothingSystemRuntimeTypes.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Containers/Array.h"
7#include "Math/Transform.h"
9#include "Math/Vector.h"
10#include "ClothingSystemRuntimeTypes.generated.h"
11
12
13// Data produced by a clothing simulation
15{
16 void Reset()
17 {
18 Positions.Reset();
19 Normals.Reset();
21 }
22
23 bool IsReset() const
24 {
25 return Positions.IsEmpty() && Normals.IsEmpty() && LODIndex == INDEX_NONE;
26 }
27
28 // Positions of the simulation mesh particles (aligned for SIMD loads)
30
31 // Normals at the simulation mesh particles (aligned for SIMD loads)
33
34 // Transform applied per position/normal element when loaded
36
37 // Transform relative to the component to update clothing root transform when not ticking clothing but rendering a component
39
40 // Current LOD index the data is valid for
42};
43
44UENUM()
46{
47 // No teleport, simulate as normal
48 None = 0,
49 // Teleport the simulation, causing no intertial effects but keep the sim mesh shape
51 // Teleport the simulation, causing no intertial effects and reset the sim mesh shape
53 // Hard reset the simulation by refreshing the cloth config
55};
56
EClothingTeleportMode
Definition ClothingSystemRuntimeTypes.h:46
@ INDEX_NONE
Definition CoreMiscDefines.h:150
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UENUM(...)
Definition ObjectMacros.h:749
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition Array.h:670
Definition UnrealString.h.inl:34
Definition ClothingSystemRuntimeTypes.h:15
TArray< FVector3f, TAlignedHeapAllocator< 16 > > Positions
Definition ClothingSystemRuntimeTypes.h:29
void Reset()
Definition ClothingSystemRuntimeTypes.h:16
FTransform ComponentRelativeTransform
Definition ClothingSystemRuntimeTypes.h:38
bool IsReset() const
Definition ClothingSystemRuntimeTypes.h:23
TArray< FVector3f, TAlignedHeapAllocator< 16 > > Normals
Definition ClothingSystemRuntimeTypes.h:32
FTransform Transform
Definition ClothingSystemRuntimeTypes.h:35
int32 LODIndex
Definition ClothingSystemRuntimeTypes.h:41
Definition ClothingSystemRuntimeTypes.h:58
virtual void GetUpdateClothSimulationData_AnyThread(TMap< int32, FClothSimulData > &OutClothSimulData, FMatrix &OutLocalToWorld, float &OutClothBlendWeight) const =0