Navigation
Unreal Engine C++ API Reference > Plugins > ChaosCloth > ChaosCloth
References
Module | ChaosCloth |
Header | /Engine/Plugins/Experimental/ChaosCloth/Source/Chaos/Public/ChaosCloth/ChaosClothingSimulationCloth.h |
Include | #include "ChaosCloth/ChaosClothingSimulationCloth.h" |
Syntax
class FClothingSimulationCloth
Remarks
Cloth simulation node.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FClothingSimulationCloth
(
const FClothingSimulationCloth& |
||
![]() |
|||
![]() |
FClothingSimulationCloth
(
FClothingSimulationConfig* InConfig, |
||
![]() |
FClothingSimulationCloth
(
PRAGMA_DISABLE_DEPRECATION_WARNINGSFClothingSimulationMesh* InMesh, FClothingSimulationCloth
(
PRAGMA_DISABLE_DEPRECATION_WARNINGSFClothingSimulationMesh* InMesh, |
Use config based constructor instead. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Add
(
FClothingSimulationSolver* Solver |
- Solver interface - |
![]() |
void | AddCollider
(
FClothingSimulationCollider* InCollider |
|
![]() ![]() |
FAABB3 | CalculateBoundingBox
(
const FClothingSimulationSolver* Solver |
Return the current bounding box based on a given solver, not thread safe, call must be done right after the solver update. |
![]() ![]() |
TConstArrayView< Softs::FSolverVec3 > | GetAnimationNormals
(
const FClothingSimulationSolver* Solver |
Return the solver's input normals for this cloth source current LOD, not thread safe, call must be done right after the solver update. |
![]() ![]() |
TConstArrayView< Softs::FSolverVec3 > | GetAnimationPositions
(
const FClothingSimulationSolver* Solver |
- Debugging/visualization functions Return the solver's input positions for this cloth source current LOD, not thread safe, call must be done right after the solver update. |
![]() ![]() |
const TArray< FClothingSimulationCollider * > & | GetColliders () |
|
![]() ![]() |
FClothingSimulationConfig * | GetConfig () |
|
![]() ![]() |
TVec3< FRealSingle > | GetGravity
(
const FClothingSimulationSolver* Solver |
Return the current gravity as applied by the solver using the various overrides, not thread safe, call must be done right after the solver update. |
![]() ![]() |
uint32 | GetGroupId () |
|
![]() ![]() |
uint32 | GetLODIndex
(
const FClothingSimulationSolver* Solver |
|
![]() ![]() |
PRAGMA_DISABLE_DEPRECATION_WARNINGSFClothingSimulationMesh * | GetMesh () |
- Node property getters/setters |
![]() ![]() |
int32 | ||
![]() ![]() |
int32 | ||
![]() ![]() |
int32 | GetNumParticles
(
const FClothingSimulationSolver* Solver |
Return the current LOD num particles, or 0 if no LOD is currently selected. |
![]() ![]() |
int32 | GetOffset
(
const FClothingSimulationSolver* Solver |
Return the current LOD offset in the solver's particle array, or INDEX_NONE if no LOD is currently selected. |
![]() ![]() |
TConstArrayView< Softs::FSolverReal > | GetParticleInvMasses
(
const FClothingSimulationSolver* Solver |
Return the solver's inverse masses for this cloth current LOD, not thread safe, call must be done right after the solver update. |
![]() ![]() |
TConstArrayView< Softs::FSolverVec3 > | GetParticleNormals
(
const FClothingSimulationSolver* Solver |
Return the solver's normals for this cloth current LOD, not thread safe, call must be done right after the solver update. |
![]() ![]() |
TConstArrayView< Softs::FSolverVec3 > | GetParticlePositions
(
const FClothingSimulationSolver* Solver |
Return the solver's positions for this cloth current LOD, not thread safe, call must be done right after the solver update. |
![]() ![]() |
TConstArrayView< Softs::FSolverVec3 > | GetParticleVelocities
(
const FClothingSimulationSolver* Solver |
Return the solver's velocities for this cloth current LOD, not thread safe, call must be done right after the solver update. |
![]() ![]() |
int32 | Return the reference bone index for this cloth. | |
![]() ![]() |
const FRigidTransform3 & | Return the local reference space transform for this cloth. | |
![]() ![]() |
const TArray< TConstArrayView< TTuple< int32, int32, float > > > & | GetTethers
(
const FClothingSimulationSolver* Solver |
Return the current LOD tethers. |
![]() ![]() |
const FTriangleMesh & | GetTriangleMesh
(
const FClothingSimulationSolver* Solver |
Return the current LOD mesh. |
![]() ![]() |
TConstArrayView< FRealSingle > | GetWeightMapByName
(
const FClothingSimulationSolver* Solver, |
Return the weight map of the specified name if available on the current LOD, or an empty array view otherwise. |
![]() ![]() |
TConstArrayView< FRealSingle > | GetWeightMapByProperty
(
const FClothingSimulationSolver* Solver, |
Return the weight map of the specified property name if it exists and is available on the current LOD, or an empty array view otherwise. |
![]() |
void | PostUpdate
(
FClothingSimulationSolver* Solver |
|
![]() |
void | PreUpdate
(
FClothingSimulationSolver* Solver |
|
![]() |
void | Remove
(
FClothingSimulationSolver* Solver |
|
![]() |
void | RemoveCollider
(
FClothingSimulationCollider* InCollider |
|
![]() |
void | ||
![]() |
void | Reset () |
|
![]() |
void | SetColliders
(
TArray< FClothingSimulationCollider* >&& InColliders |
|
![]() |
void | SetConfig
(
FClothingSimulationConfig* InConfig |
|
![]() |
void | SetMaxDistancesMultiplier
(
FRealSingle InMaxDistancesMultiplier |
- Animatable property setters - |
![]() |
void | SetMesh
(
FClothingSimulationMesh* InMesh |
|
![]() |
void | Teleport () |
|
![]() |
void | Update
(
FClothingSimulationSolver* Solver |
|
![]() |
void | UpdateFromCache
(
const FClothingSimulationCacheData& CacheData |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FClothingSimulationCloth & | ||
![]() |
FClothingSimulationCloth & | operator=
(
const FClothingSimulationCloth& |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FLODData |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
EMassMode |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() |
PRAGMA_DISABLE_DEPRECATION_WARNINGS typedef FClothConstraints::ETetherMode | ETetherMode | ETetherMode has been replaced with bUseGeodesicTethers. |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() |
FClothingSimulationCloth
(
PRAGMA_DISABLE_DEPRECATION_WARNINGSFClothingSimulationMesh* InMesh, FClothingSimulationCloth
(
PRAGMA_DISABLE_DEPRECATION_WARNINGSFClothingSimulationMesh* InMesh, |
Use config based constructor instead. | |
![]() |
void | GetAnimDriveProperties
(
TVec2< FRealSingle >& OutAnimDriveStiffness, |
Get properties directly through FClothingSimulationConfig |
![]() ![]() |
const TArray< TConstArrayView< FRealSingle > > & | GetWeightMaps
(
const FClothingSimulationSolver* Solver |
Returns an empty array from 5.3. Update your code with GetWeightMapByName and GetWeightMapByProperty to return the current LOD weight map instead. |
![]() |
void | SetAerodynamicsProperties
(
const TVec2< FRealSingle >& InDrag, |
Set properties directly through FClothingSimulationConfig |
![]() |
void | SetAnimDriveProperties
(
const TVec2< FRealSingle >& InAnimDriveStiffness, |
Set properties directly through FClothingSimulationConfig |
![]() |
void | SetBackstopProperties
(
bool bInEnableBackstop |
Set properties directly through FClothingSimulationConfig |
![]() |
void | SetCollisionProperties
(
FRealSingle InCollisionThickness, |
Set properties directly through FClothingSimulationConfig |
![]() |
void | SetDampingProperties
(
FRealSingle InDampingCoefficient, |
Set properties directly through FClothingSimulationConfig |
![]() |
void | SetGravityProperties
(
FRealSingle InGravityScale, |
Set properties directly through FClothingSimulationConfig |
![]() |
void | SetLongRangeAttachmentProperties
(
const TVec2< FRealSingle >& InTetherStiffness, |
Set properties directly through FClothingSimulationConfig |
![]() |
void | SetMaterialProperties
(
const TVec2< FRealSingle >& InEdgeStiffness, |
Set properties directly through FClothingSimulationConfig |
![]() |
void | SetPressureProperties
(
const TVec2< FRealSingle >& InPressure |
Set properties directly through FClothingSimulationConfig |
![]() |
void | SetVelocityScaleProperties
(
const FVec3& InLinearVelocityScale, |
Set properties directly through FClothingSimulationConfig |