Navigation
API > API/Runtime > API/Runtime/ClothingSystemRuntimeCommon
Base simulation data that just about every simulation would need.
| Name | FClothingSimulationContextCommon |
| Type | class |
| Header File | /Engine/Source/Runtime/ClothingSystemRuntimeCommon/Public/ClothingSimulation.h |
| Include Path | #include "ClothingSimulation.h" |
Syntax
class FClothingSimulationContextCommon : public IClothingSimulationContext
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| ClothingSimulation.h | |||
| ClothingSimulation.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FClothingSimulationContextCommon() |
ClothingSimulation.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BoneTransforms | TArray< FTransform > | Component space bone transforms of the owning component. | ClothingSimulation.h | |
| CacheData | FClothingSimulationCacheData | Data read from the cache. | ClothingSimulation.h | |
| ComponentToWorld | FTransform | Component to world transform of the owning component. | ClothingSimulation.h | |
| DeltaSeconds | float | Delta for this tick. | ClothingSimulation.h | |
| MaxDistanceScale | float | Scale for the max distance constraints of the simulation mesh. | ClothingSimulation.h | |
| PredictedLod | int32 | The predicted LOD of the skeletal mesh component running the simulation. | ClothingSimulation.h | |
| RefToLocals | TArray< FMatrix44f > | Ref to local matrices from the owning component (for skinning fixed verts) | ClothingSimulation.h | |
| SolverGeometryScale | float | Scale applied to all incoming geometry. | ClothingSimulation.h | |
| TeleportMode | EClothingTeleportMode | Whether and how we should teleport the simulation this tick. | ClothingSimulation.h | |
| VelocityScale | float | Velocity scale to compensate input velocities in case the MaxPhysicsDelta kicks in. | ClothingSimulation.h | |
| WindAdaption | float | Wind adaption, a measure of how quickly to adapt to the wind speed when using the legacy wind calculation mode | ClothingSimulation.h | |
| WindVelocity | FVector | Wind velocity at the component location. | ClothingSimulation.h | |
| WorldGravity | FVector | Gravity extracted from the world. | ClothingSimulation.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Fill
(
const USkeletalMeshComponent* InComponent, |
Fill this context using the given skeletal mesh component. | ClothingSimulation.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void FillBoneTransforms
(
const USkeletalMeshComponent* InComponent |
Default fill behavior as expected to be used by every simulation. | ClothingSimulation.h | |
virtual void FillComponentToWorld
(
const USkeletalMeshComponent* InComponent |
ClothingSimulation.h | ||
virtual void FillDeltaSeconds
(
float InDeltaSeconds, |
ClothingSimulation.h | ||
virtual void FillMaxDistanceScale
(
const USkeletalMeshComponent* InComponent |
ClothingSimulation.h | ||
virtual void FillRefToLocals
(
const USkeletalMeshComponent* InComponent, |
ClothingSimulation.h | ||
virtual void FillSolverGeometryScale
(
const USkeletalMeshComponent* InComponent |
ClothingSimulation.h | ||
virtual void FillTeleportMode
(
const USkeletalMeshComponent* InComponent, |
ClothingSimulation.h | ||
virtual void FillWindVelocity
(
const USkeletalMeshComponent* InComponent |
ClothingSimulation.h | ||
virtual void FillWorldGravity
(
const USkeletalMeshComponent* InComponent |
ClothingSimulation.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FClothingSimulationContextCommon & operator=
(
const FClothingSimulationContextCommon& |
ClothingSimulation.h |