Navigation
Unreal Engine C++ API Reference > Plugins > ChaosCloth > ChaosCloth
Inheritance Hierarchy
- FPhysicsSolverEvents
- FClothingSimulationSolver
References
Module | ChaosCloth |
Header | /Engine/Plugins/Experimental/ChaosCloth/Source/Chaos/Public/ChaosCloth/ChaosClothingSimulationSolver.h |
Include | #include "ChaosCloth/ChaosClothingSimulationSolver.h" |
Syntax
class FClothingSimulationSolver : public Chaos::FPhysicsSolverEvents
Remarks
Solver simulation node.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
|||
![]() |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddCloth
(
FClothingSimulationCloth* InCloth |
|
![]() |
int32 | AddCollisionParticles
(
int32 NumCollisionParticles, |
- Collider interface - |
![]() |
void | AddExternalForces
(
uint32 GroupId, |
Add external forces to the particles. |
![]() |
int32 | AddParticles
(
int32 NumParticles, |
- Cloth interface - |
![]() ![]() |
FBoxSphereBounds | ||
![]() |
void | EnableClothGravityOverride
(
bool bInIsClothGravityOverrideEnabled |
Disables all Cloths gravity override mechanism. |
![]() |
void | EnableCollisionParticles
(
int32 Offset, |
|
![]() |
void | EnableParticles
(
int32 Offset, |
|
![]() ![]() |
const Softs::FSolverVec3 * | GetAnimationNormals
(
int32 Offset |
|
![]() |
Softs::FSolverVec3 * | GetAnimationNormals
(
int32 Offset |
|
![]() |
Softs::FSolverVec3 * | GetAnimationPositions
(
int32 Offset |
|
![]() ![]() |
const Softs::FSolverVec3 * | GetAnimationPositions
(
int32 Offset |
|
![]() |
Softs::FSolverVec3 * | GetAnimationVelocities
(
int32 Offset |
|
![]() ![]() |
const Softs::FSolverVec3 * | GetAnimationVelocities
(
int32 Offset |
|
![]() |
FClothConstraints & | GetClothConstraints
(
int32 Offset |
|
![]() ![]() |
const FClothConstraints & | GetClothConstraints
(
int32 Offset |
|
![]() ![]() |
TConstArrayView< const FClothingSimulationCloth * > | GetCloths () |
|
![]() |
Softs::FSolverRigidTransform3 * | GetCollisionBaseTransforms
(
int32 Offset |
|
![]() ![]() |
const Softs::FSolverRigidTransform3 * | GetCollisionBaseTransforms
(
int32 Offset |
|
![]() ![]() |
const int32 * | GetCollisionBoneIndices
(
int32 Offset |
|
![]() |
int32 * | GetCollisionBoneIndices
(
int32 Offset |
|
![]() ![]() |
const TArray< Softs::FSolverVec3 > & | ||
![]() ![]() |
const TUniquePtr< FImplicitObject > * | GetCollisionGeometries
(
int32 Offset |
|
![]() ![]() |
const TArray< Softs::FSolverVec3 > & | ||
![]() ![]() |
const Softs::FSolverRotation3 * | GetCollisionParticleRs
(
int32 Offset |
|
![]() |
Softs::FSolverRotation3 * | GetCollisionParticleRs
(
int32 Offset |
|
![]() ![]() |
const Softs::FSolverVec3 * | GetCollisionParticleXs
(
int32 Offset |
|
![]() |
Softs::FSolverVec3 * | GetCollisionParticleXs
(
int32 Offset |
|
![]() ![]() |
const TArray< Softs::FSolverReal > & | ||
![]() ![]() |
const bool * | GetCollisionStatus
(
int32 Offset |
|
![]() |
Softs::FSolverRigidTransform3 * | GetCollisionTransforms
(
int32 Offset |
|
![]() ![]() |
const Softs::FSolverRigidTransform3 * | GetCollisionTransforms
(
int32 Offset |
|
![]() ![]() |
FClothingSimulationConfig * | GetConfig () |
Get the solver configuration. |
![]() ![]() |
FSolverReal | GetDeltaTime () |
Return the last delta time used for advancing the simulation. |
![]() ![]() |
bool | ||
![]() ![]() |
const TVec3< FRealSingle > & | GetGravity () |
|
![]() ![]() |
const Softs::FSolverVec3 * | GetInterpolatedAnimationNormals
(
int32 Offset |
|
![]() |
Softs::FSolverVec3 * | GetInterpolatedAnimationNormals
(
int32 Offset |
|
![]() ![]() |
const Softs::FSolverVec3 * | GetInterpolatedAnimationPositions
(
int32 Offset |
|
![]() |
Softs::FSolverVec3 * | GetInterpolatedAnimationPositions
(
int32 Offset |
|
![]() ![]() |
const FVec3 & | ||
![]() ![]() |
const FRotation3 & | ||
![]() ![]() |
int32 | ||
![]() |
Softs::FSolverVec3 * | GetNormals
(
int32 Offset |
|
![]() ![]() |
const Softs::FSolverVec3 * | GetNormals
(
int32 Offset |
|
![]() ![]() |
int32 | ||
![]() ![]() |
uint32 | ||
![]() ![]() |
int32 | ||
![]() ![]() |
int32 | Return the actual of number of iterations used by the Evolution solver after the update (different from the number of iterations, depends on frame rate) | |
![]() |
Softs::FSolverVec3 * | GetOldAnimationNormals
(
int32 Offset |
|
![]() ![]() |
const Softs::FSolverVec3 * | GetOldAnimationNormals
(
int32 Offset |
|
![]() ![]() |
const Softs::FSolverVec3 * | GetOldAnimationPositions
(
int32 Offset |
|
![]() |
Softs::FSolverVec3 * | GetOldAnimationPositions
(
int32 Offset |
|
![]() ![]() |
const Softs::FSolverRigidTransform3 * | GetOldCollisionTransforms
(
int32 Offset |
|
![]() |
Softs::FSolverRigidTransform3 * | GetOldCollisionTransforms
(
int32 Offset |
|
![]() ![]() |
const Softs::FSolverReal * | GetParticleInvMasses
(
int32 Offset |
|
![]() ![]() |
const Softs::FPAndInvM * | GetParticlePandInvMs
(
int32 Offset |
|
![]() |
Softs::FPAndInvM * | GetParticlePandInvMs
(
int32 Offset |
|
![]() |
Softs::FSolverVec3 * | GetParticleVs
(
int32 Offset |
|
![]() ![]() |
const Softs::FSolverVec3 * | GetParticleVs
(
int32 Offset |
|
![]() ![]() |
const Softs::FSolverVec3 * | GetParticleXs
(
int32 Offset |
|
![]() |
Softs::FSolverVec3 * | GetParticleXs
(
int32 Offset |
|
![]() ![]() |
const FPerSolverFieldSystem & | ||
![]() |
FPerSolverFieldSystem & | -Field interface - | |
![]() ![]() |
int32 | GetSolverLOD () |
|
![]() ![]() |
FSolverReal | GetTime () |
Get the current solver time. |
![]() ![]() |
FReal | ||
![]() ![]() |
const TVec3< FRealSingle > & | ||
![]() ![]() |
const Softs::FVelocityAndPressureField & | GetWindVelocityAndPressureField
(
uint32 GroupId |
Return the wind velocity and pressure field associated with a given group id. |
![]() ![]() |
bool | ||
![]() |
void | RefreshCloth
(
FClothingSimulationCloth* InCloth |
|
![]() |
void | ||
![]() |
void | RemoveCloth
(
FClothingSimulationCloth* InCloth |
|
![]() |
void | RemoveCloths () |
|
![]() |
void | ResetCollisionStartPose
(
int32 Offset, |
|
![]() |
void | ResetStartPose
(
int32 Offset, |
|
![]() |
void | SetCloths
(
TArray< FClothingSimulationCloth* >&& InCloths |
- Object management functions - |
![]() |
void | SetCollisionGeometry
(
int32 Offset, |
|
![]() |
void | SetConfig
(
FClothingSimulationConfig* InConfig |
Set the solver configuration. Can use a cloth config if a single cloth is being simulated. |
![]() |
void | SetEnableSolver
(
bool InbEnableSolver |
|
![]() |
void | SetGravity
(
const TVec3< FRealSingle >& InGravity |
|
![]() |
void | SetGravity
(
uint32 GroupId, |
Set per group gravity, used to override solver's gravity. Must be called during cloth update. |
![]() |
void | SetLocalSpaceLocation
(
const FVec3& InLocalSpaceLocation, |
- Animatable property setters - |
![]() |
void | SetLocalSpaceRotation
(
const FQuat& InLocalSpaceRotation |
|
![]() |
void | SetParticleMassFromDensity
(
int32 Offset, |
|
![]() |
void | SetParticleMassFromTotalMass
(
int32 Offset, |
|
![]() |
void | SetParticleMassUniform
(
int32 Offset, |
|
![]() |
void | SetProperties
(
uint32 GroupId, |
Set general cloth simulation properties. |
![]() |
void | SetReferenceVelocityScale
(
uint32 GroupId, |
Set the amount of velocity allowed to filter from the given change in reference space transform, including local simulation space. |
![]() |
void | SetSolverLOD
(
int32 LODIndex |
|
![]() |
void | SetUseCCD
(
uint32 GroupId, |
Set whether to use continuous collision detection. |
![]() |
void | SetVelocityScale
(
FReal InVelocityScale |
|
![]() |
void | SetWindAndPressureGeometry
(
uint32 GroupId, |
Set the geometry affected by the wind and pressure. |
![]() |
void | SetWindAndPressureGeometry
(
uint32 GroupId, |
|
![]() |
void | SetWindAndPressureProperties
(
uint32 GroupId, |
Set the wind and pressure properties. |
![]() |
void | SetWindAndPressureProperties
(
uint32 GroupId, |
|
![]() |
void | SetWindVelocity
(
const TVec3< FRealSingle >& InWindVelocity, |
|
![]() |
void | SetWindVelocity
(
uint32 GroupId, |
Set per group wind velocity, used to override solver's wind velocity. Must be called during cloth update. |
![]() |
void | Update
(
FSolverReal InDeltaTime |
Advance the simulation. |
![]() |
void | UpdateFromCache
(
const FClothingSimulationCacheData& CacheData |
Set the cached positions onto the particles |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FClothingSimulationSolver & | operator=
(
const FClothingSimulationSolver& |
|
![]() |
FClothingSimulationSolver & |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | SetMaxNumIterations
(
int32 InMaxNumIterations |
Set properties directly through FClothingSimulationConfig |
![]() |
void | SetNumIterations
(
int32 InNumIterations |
Set properties directly through FClothingSimulationConfig |
![]() |
void | SetNumSubsteps
(
int32 InNumSubsteps |
Set properties directly through FClothingSimulationConfig |
![]() |
void | UpdateFromCache
(
const TArray< FVector >& CachedPositions, |
Use UpdateFromCache(CacheData) instead |