FClothingSimulationContextCommon

Common simulation stats.

Choose your operating system:

Windows

macOS

Linux

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

Name Description

Public variable

TArray< FTransf...

 

BoneTransforms

Component space bone transforms of the owning component.

Public variable

FTransform

 

ComponentToWorld

Component to world transform of the owning component.

Public variable

float

 

DeltaSeconds

Delta for this tick.

Public variable

float

 

MaxDistanceScale

Scale for the max distance constraints of the simulation mesh.

Public variable

int32

 

PredictedLod

The predicted LOD of the skeletal mesh component running the simulation.

Public variable

TArray< FMatrix...

 

RefToLocals

Ref to local matrices from the owning component (for skinning fixed verts)

Public variable

EClothingTelepo...

 

TeleportMode

Whether and how we should teleport the simulation this tick.

Public variable

float

 

WindAdaption

Wind adaption, a measure of how quickly to adapt to the wind speed when using the legacy wind calculation mode

Public variable

FVector

 

WindVelocity

Wind velocity at the component location.

Public variable

FVector

 

WorldGravity

Gravity extracted from the world.

Constructors

Destructors

Functions

Name Description

Public function Virtual

void

 

Fill

(
    const USkeletalMeshComponent* ...,
    float InDeltaSeconds,
    float InMaxPhysicsDelta,
    bool bIsInitialization
)

Fill this context using the given skeletal mesh component.

Protected function Virtual

void

 

FillBoneTransforms

(
    const USkeletalMeshComponent* ...
)

Default fill behavior as expected to be used by every simulation.

Protected function Virtual

void

 

FillComponentToWorld

(
    const USkeletalMeshComponent* ...
)

Protected function Virtual

void

 

FillDeltaSeconds

(
    float InDeltaSeconds,
    float InMaxPhysicsDelta
)

Protected function Virtual

void

 

FillMaxDistanceScale

(
    const USkeletalMeshComponent* ...
)

Protected function Virtual

void

 

FillRefToLocals

(
    const USkeletalMeshComponent* ...,
    bool bIsInitialization
)

Protected function Virtual

void

 

FillTeleportMode

(
    const USkeletalMeshComponent* ...,
    float InDeltaSeconds,
    float InMaxPhysicsDelta
)

Protected function Virtual

void

 

FillWindVelocity

(
    const USkeletalMeshComponent* ...
)

Protected function Virtual

void

 

FillWorldGravity

(
    const USkeletalMeshComponent* ...
)

Deprecated Functions

Name Description

Public function Virtual

void

 

Fill

(
    const USkeletalMeshComponent* ...,
    float InDeltaSeconds,
    float InMaxPhysicsDelta
)

Use the version with bIsInitialization instead.