UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ChaosDeformableSolverTypes.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
9#include "CoreMinimal.h"
10
13
14namespace Chaos::Softs
15{
17 {
20 /* InNumSolverSubSteps */ 2,
21 /* InNumSolverIterations */ 5,
22 /* InFixTimeStep */ false,
23 /* InTimeStepSize */ (FSolverReal)0.05,
24 /* InCacheToFile */ false,
25 /* InbEnableKinematics */ true,
26 /* InbUseFloor */ true,
27 /* InbUseGridBasedConstraints */ false,
28 /* InGridDx */ (FSolverReal)1.0,
29 /* InbDoQuasistatics */ false,
30 /* InbDoBlended */ false,
31 /* InBlendedZeta */ (FSolverReal)0.1,
32 /* InbEnableGravity */ true,
33 /* InbEnableCorotatedConstraints */ true,
34 /* InbEnablePositionTargets */ true,
35 /* InbUseGaussSeidelConstraints */ false,
36 /* InbUseSOR */ true,
37 /* InOmegaSOR */ (FSolverReal)1.6,
38 /* InbUseGSNeohookean */ false,
39 /* InbDoSpringCollision */ false,
40 /* InbDoInComponentSpringCollision */ false,
41 /* InNRingExcluded */ 1,
42 /* InSpringCollisionSearchRadius */ (FSolverReal)0,
43 /* InSpringCollisionStiffness */ (FSolverReal)500.0,
44 /* InbAllowSliding */ true,
45 /* InbDoSphereRepulsion */ false,
46 /* InSphereRepulsionRadius */ (FSolverReal)0,
47 /* InSphereRepulsionStiffness */ (FSolverReal)500.0,
48 /* InbDoLengthBasedMuscleActivation */ false,
49 /* InbOverrideMuscleActivationWithAnimatedCurves */ false,
50 /* InbCollideWithFullMesh */ false,
51 /* InbEnableDynamicSprings */ true)
52 {};
53
57 bool InFixTimeStep,
59 bool InCacheToFile,
61 bool InbUseFloor,
65 bool InbDoBlended,
71 bool InbUseSOR,
79 bool InbAllowSliding,
119 {}
120
123 bool FixTimeStep = false;
125 bool CacheToFile = false;
126 bool bEnableKinematics = true;
127 bool bUseFloor = true;
130 bool bDoQuasistatics = false;
131 bool bDoBlended = false;
133 bool bEnableGravity = true;
137 bool bUseSOR = true;
139 bool bUseGSNeohookean = false;
140 bool bDoSpringCollision = false;
145 bool bAllowSliding = true;
146 bool bDoSphereRepulsion = false;
153 };
154
155
156 /*Data Transfer*/
158 typedef TMap<FThreadingProxy::FKey, FDataMapValue > FDeformableDataMap; // <const UObject*,FBufferSharedPtr>
159
172
173 /* Accessor for the Game Thread*/
175 {
176 public:
177// friend class UDeformableSolverComponent;
178// friend class FFleshCacheAdapter;
179//#if PLATFORM_WINDOWS
180// protected:
181//#endif
183 };
184
185
186 /* Accessor for the Physics Thread*/
188 {
189 public:
190// friend class UDeformableSolverComponent;
191// friend class FFleshCacheAdapter;
192//#if PLATFORM_WINDOWS
193// protected:
194//#endif
196 };
197
198
200 {
206
208 {
209#if WITH_EDITOR
210 // p.Chaos.DebugDraw.Enabled 1
211 return Chaos::FDebugDrawQueue::GetInstance().IsDebugDrawingEnabled();
212#else
213 return false;
214#endif
215 }
216 };
217
224
225
226}; // namesapce Chaos::Softs
@ 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
return true
Definition ExternalRpcRegistry.cpp:601
Definition ChaosDeformableSolverTypes.h:175
FGameThreadAccessor()
Definition ChaosDeformableSolverTypes.h:182
Definition ChaosDeformableSolverTypes.h:188
FPhysicsThreadAccessor()
Definition ChaosDeformableSolverTypes.h:195
Definition UnrealString.h.inl:34
Definition SharedPointer.h:692
Definition CollectionEmbeddedSpringConstraintFacade.cpp:6
TMap< FThreadingProxy::FKey, FDataMapValue > FDeformableDataMap
Definition ChaosDeformableSolverTypes.h:158
FRealSingle FSolverReal
Definition PBDSoftsEvolutionFwd.h:31
TSharedPtr< const FThreadingProxy::FBuffer > FDataMapValue
Definition ChaosDeformableSolverTypes.h:157
@ false
Definition radaudio_common.h:23
Definition ChaosDeformableSolverTypes.h:200
bool bDoDrawTransientKinematicParticles
Definition ChaosDeformableSolverTypes.h:203
bool bDoDrawKinematicParticles
Definition ChaosDeformableSolverTypes.h:202
FSolverReal ParticleRadius
Definition ChaosDeformableSolverTypes.h:205
bool bDoDrawTetrahedralParticles
Definition ChaosDeformableSolverTypes.h:201
bool bDoDrawRigidCollisionGeometry
Definition ChaosDeformableSolverTypes.h:204
bool IsDebugDrawingEnabled()
Definition ChaosDeformableSolverTypes.h:207
Definition ChaosDeformableSolverTypes.h:160
FDeformablePackage(int32 InFrame, FDeformableDataMap &&InMap)
Definition ChaosDeformableSolverTypes.h:164
FDeformablePackage()
Definition ChaosDeformableSolverTypes.h:161
FDeformableDataMap ObjectMap
Definition ChaosDeformableSolverTypes.h:170
int32 Frame
Definition ChaosDeformableSolverTypes.h:169
Definition ChaosDeformableSolverTypes.h:17
bool bUseSOR
Definition ChaosDeformableSolverTypes.h:137
FSolverReal TimeStepSize
Definition ChaosDeformableSolverTypes.h:124
FSolverReal BlendedZeta
Definition ChaosDeformableSolverTypes.h:132
bool FixTimeStep
Definition ChaosDeformableSolverTypes.h:123
bool bCollideWithFullMesh
Definition ChaosDeformableSolverTypes.h:151
bool bEnableKinematics
Definition ChaosDeformableSolverTypes.h:126
bool bEnableDynamicSprings
Definition ChaosDeformableSolverTypes.h:152
bool bDoQuasistatics
Definition ChaosDeformableSolverTypes.h:130
bool CacheToFile
Definition ChaosDeformableSolverTypes.h:125
bool bDoLengthBasedMuscleActivation
Definition ChaosDeformableSolverTypes.h:149
bool bUseGSNeohookean
Definition ChaosDeformableSolverTypes.h:139
bool bOverrideMuscleActivationWithAnimatedCurves
Definition ChaosDeformableSolverTypes.h:150
bool bDoBlended
Definition ChaosDeformableSolverTypes.h:131
bool bUseGridBasedConstraints
Definition ChaosDeformableSolverTypes.h:128
bool bUseGaussSeidelConstraints
Definition ChaosDeformableSolverTypes.h:136
FDeformableSolverProperties()
Definition ChaosDeformableSolverTypes.h:18
bool bUseFloor
Definition ChaosDeformableSolverTypes.h:127
FDeformableSolverProperties(int32 InNumSolverSubSteps, int32 InNumSolverIterations, bool InFixTimeStep, FSolverReal InTimeStepSize, bool InCacheToFile, bool InbEnableKinematics, bool InbUseFloor, bool InbUseGridBasedConstraints, FSolverReal InGridDx, bool InbDoQuasistatics, bool InbDoBlended, FSolverReal InBlendedZeta, bool InbEnableGravity, bool InbEnableCorotatedConstraints, bool InbEnablePositionTargets, bool InbUseGaussSeidelConstraints, bool InbUseSOR, FSolverReal InOmegaSOR, bool InbUseGSNeohookean, bool InbDoSpringCollision, bool InbDoInComponentSpringCollision, int32 InNRingExcluded, FSolverReal InSpringCollisionSearchRadius, FSolverReal InSpringCollisionStiffness, bool InbAllowSliding, bool InbDoSphereRepulsion, FSolverReal InSphereRepulsionRadius, FSolverReal InSphereRepulsionStiffness, bool InbDoLengthBasedMuscleActivation, bool InbOverrideMuscleActivationWithAnimatedCurves, bool InbCollideWithFullMesh, bool InbEnableDynamicSprings)
Definition ChaosDeformableSolverTypes.h:54
FSolverReal GridDx
Definition ChaosDeformableSolverTypes.h:129
bool bEnablePositionTargets
Definition ChaosDeformableSolverTypes.h:135
int32 NumSolverIterations
Definition ChaosDeformableSolverTypes.h:122
bool bDoSpringCollision
Definition ChaosDeformableSolverTypes.h:140
FSolverReal SphereRepulsionStiffness
Definition ChaosDeformableSolverTypes.h:148
FSolverReal OmegaSOR
Definition ChaosDeformableSolverTypes.h:138
bool bDoSphereRepulsion
Definition ChaosDeformableSolverTypes.h:146
int32 NRingExcluded
Definition ChaosDeformableSolverTypes.h:142
FSolverReal SphereRepulsionRadius
Definition ChaosDeformableSolverTypes.h:147
FSolverReal SpringCollisionSearchRadius
Definition ChaosDeformableSolverTypes.h:143
int32 NumSolverSubSteps
Definition ChaosDeformableSolverTypes.h:121
bool bEnableCorotatedConstraints
Definition ChaosDeformableSolverTypes.h:134
bool bDoInComponentSpringCollision
Definition ChaosDeformableSolverTypes.h:141
bool bEnableGravity
Definition ChaosDeformableSolverTypes.h:133
bool bAllowSliding
Definition ChaosDeformableSolverTypes.h:145
FSolverReal SpringCollisionStiffness
Definition ChaosDeformableSolverTypes.h:144
Definition ChaosDeformableSolverTypes.h:219
int32 XPBDCorotatedBatchSize
Definition ChaosDeformableSolverTypes.h:220
int32 XPBDCorotatedBatchThreshold
Definition ChaosDeformableSolverTypes.h:221
int32 NumLogExtremeParticle
Definition ChaosDeformableSolverTypes.h:222