Navigation
API > API/Plugins > API/Plugins/ChaosCloth
| Name | FClothingSimulation |
| Type | class |
| Header File | /Engine/Plugins/ChaosCloth/Source/ChaosCloth/Public/ChaosCloth/ChaosClothingSimulation.h |
| Include Path | #include "ChaosCloth/ChaosClothingSimulation.h" |
Syntax
class FClothingSimulation : public FClothingSimulationCommon
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FClothingSimulation() |
ChaosCloth/ChaosClothingSimulation.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FClothingSimulation() |
ChaosCloth/ChaosClothingSimulation.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FSkeletalMeshCacheAdapter | friend | ChaosCloth/ChaosClothingSimulation.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHasInvalidReferenceBoneTransforms | bool | ChaosCloth/ChaosClothingSimulation.h | ||
| bIsTeleported | TAtomic< bool > | ChaosCloth/ChaosClothingSimulation.h | ||
| bUseGravityOverride | bool | ChaosCloth/ChaosClothingSimulation.h | ||
| bUseLocalSpaceSimulation | bool | ChaosCloth/ChaosClothingSimulation.h | ||
| Cloths | TArray< TUniquePtr< FClothingSimulationCloth > > | ChaosCloth/ChaosClothingSimulation.h | ||
| ClothSharedSimConfig | UChaosClothSharedSimConfig * | Shared cloth config. | ChaosCloth/ChaosClothingSimulation.h | |
| Colliders | TArray< TUniquePtr< FClothingSimulationCollider > > | ChaosCloth/ChaosClothingSimulation.h | ||
| Configs | TArray< TUniquePtr< FClothingSimulationConfig > > | ChaosCloth/ChaosClothingSimulation.h | ||
| ExternalCollisionData | FClothCollisionData | External collision Data. | ChaosCloth/ChaosClothingSimulation.h | |
| GravityOverride | FVector | ChaosCloth/ChaosClothingSimulation.h | ||
| MaxDistancesMultipliers | FReal | ChaosCloth/ChaosClothingSimulation.h | ||
| Meshes | TArray< TUniquePtr< FClothingSimulationMesh > > | ChaosCloth/ChaosClothingSimulation.h | ||
| NumCloths | TAtomic< int32 > | Properties that must be readable from all threads. | ChaosCloth/ChaosClothingSimulation.h | |
| NumDynamicParticles | TAtomic< int32 > | ChaosCloth/ChaosClothingSimulation.h | ||
| NumIterations | TAtomic< int32 > | ChaosCloth/ChaosClothingSimulation.h | ||
| NumKinematicParticles | TAtomic< int32 > | ChaosCloth/ChaosClothingSimulation.h | ||
| NumSubsteps | TAtomic< int32 > | ChaosCloth/ChaosClothingSimulation.h | ||
| ResetCount | int32 | ChaosCloth/ChaosClothingSimulation.h | ||
| SimulationTime | TAtomic< float > | ChaosCloth/ChaosClothingSimulation.h | ||
| Solver | TUniquePtr< FClothingSimulationSolver > | Simulation objects. | ChaosCloth/ChaosClothingSimulation.h | |
| StepCount | int32 | ChaosCloth/ChaosClothingSimulation.h | ||
| Visualization | PRAGMA_DISABLE_DEPRECATION_WARNINGS FClothVisualization | Visualization object. | ChaosCloth/ChaosClothingSimulation.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DebugDrawPhysMeshShaded
(
FPrimitiveDrawInterface* PDI |
Editor only debug draw function. | ChaosCloth/ChaosClothingSimulation.h | |
void DisableGravityOverride() |
ChaosCloth/ChaosClothingSimulation.h | ||
FClothingSimulationCloth * GetCloth
(
int32 ClothId |
ChaosCloth/ChaosClothingSimulation.h | ||
FClothingSimulationSolver * GetSolver() |
ChaosCloth/ChaosClothingSimulation.h | ||
void RefreshClothConfig
(
const IClothingSimulationContext* InContext |
Function to be called if any of the assets' configuration parameters have changed. | ChaosCloth/ChaosClothingSimulation.h | |
void RefreshPhysicsAsset() |
Function to be called if any of the assets' physics assets changes (colliders) This seems to only happen when UPhysicsAsset::RefreshPhysicsAssetChange is called with bFullClothRefresh set to false during changes created using the viewport manipulators. | ChaosCloth/ChaosClothingSimulation.h | |
void SetGravityOverride
(
const FVector& InGravityOverride |
ChaosCloth/ChaosClothingSimulation.h |
Overridden from IClothingSimulation
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 GetNumCloths() |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual int32 GetNumDynamicParticles() |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual int32 GetNumIterations() |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual int32 GetNumKinematicParticles() |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual int32 GetNumSubsteps() |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual float GetSimulationTime() |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual bool IsTeleported() |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual void SetMaxNumIterations
(
int32 MaxNumIterations |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual void SetNumIterations
(
int32 NumIterations |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual void SetNumSubsteps
(
int32 NumSubsteps |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual void UpdateWorldForces
(
const USkeletalMeshComponent* OwnerComponent |
ChaosCloth/ChaosClothingSimulation.h |
Protected
Overridden from IClothingSimulation
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddExternalCollisions
(
const FClothCollisionData& InData |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual void ClearExternalCollisions() |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual void CreateActor
(
USkeletalMeshComponent* InOwnerComponent, |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual IClothingSimulationContext * CreateContext() |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual void DestroyActors() |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual void DestroyContext
(
IClothingSimulationContext* InContext |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual FBoxSphereBounds GetBounds
(
const USkeletalMeshComponent* InOwnerComponent |
Return bounds in local space (or in world space if InOwnerComponent is null). | ChaosCloth/ChaosClothingSimulation.h | |
virtual void GetCollisions
(
FClothCollisionData& OutCollisions, |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual void GetSimulationData
(
TMap< int32, FClothSimulData >& OutData, |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual void Initialize() |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual bool ShouldSimulate() |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual void Shutdown() |
ChaosCloth/ChaosClothingSimulation.h | ||
virtual void Simulate
(
IClothingSimulationContext* InContext |
ChaosCloth/ChaosClothingSimulation.h |