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