UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ClothingSimulationCacheData.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "Containers/Array.h"
5#include "Containers/Map.h"
6#include "Math/Transform.h"
7#include "Math/Vector.h"
8
10{
11 // Solver space cached positions for the kinematics targets. (Sparse--use CacheIndices to map to full)
13
14 // Solver space cached velocities for the kinematics targets. (Sparse--use CacheIndices to map to full)
16
17 // Indices used to map from CachedPositions/Velocities to solver indices
19
20 // Cached ReferenceSpaceTransform per cloth. Key is Cloth GroupId
22
31
34 {
35 CachedPositions = MoveTemp(Other.CachedPositions);
36 CachedVelocities = MoveTemp(Other.CachedVelocities);
37 CacheIndices = MoveTemp(Other.CacheIndices);
38 CachedReferenceSpaceTransforms = MoveTemp(Other.CachedReferenceSpaceTransforms);
39 return *this;
40 }
41
49
50 bool HasData() const
51 {
53 return CacheIndices.Num() > 0;
54 }
55};
#define checkSlow(expr)
Definition AssertionMacros.h:332
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
Definition Array.h:670
UE_REWRITE SizeType Num() const
Definition Array.h:1144
void Reset(SizeType NewSize=0)
Definition Array.h:2246
Definition UnrealString.h.inl:34
Definition ClothingSimulationCacheData.h:10
FClothingSimulationCacheData(const FClothingSimulationCacheData &Other)=default
FClothingSimulationCacheData & operator=(const FClothingSimulationCacheData &Other)=default
void Reset()
Definition ClothingSimulationCacheData.h:42
TArray< FVector > CachedPositions
Definition ClothingSimulationCacheData.h:12
TArray< FVector > CachedVelocities
Definition ClothingSimulationCacheData.h:15
TMap< int32, FTransform > CachedReferenceSpaceTransforms
Definition ClothingSimulationCacheData.h:21
bool HasData() const
Definition ClothingSimulationCacheData.h:50
TArray< int32 > CacheIndices
Definition ClothingSimulationCacheData.h:18
FClothingSimulationCacheData & operator=(FClothingSimulationCacheData &&Other)
Definition ClothingSimulationCacheData.h:33
FClothingSimulationCacheData(FClothingSimulationCacheData &&Other)
Definition ClothingSimulationCacheData.h:25