Navigation
API > API/Runtime > API/Runtime/ClothingSystemRuntimeInterface
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UClothingSimulationInteractor
References
| Module | ClothingSystemRuntimeInterface |
| Header | /Engine/Source/Runtime/ClothingSystemRuntimeInterface/Public/ClothingSimulationInteractor.h |
| Include | #include "ClothingSimulationInteractor.h" |
Syntax
UCLASS (Abstract, BlueprintType, MinimalAPI)
class UClothingSimulationInteractor : public UObject
Remarks
If a clothing simulation is able to be interacted with at runtime then a derived interactor should be created, and at least the basic API implemented for that simulation. Only write to the simulation and context during the call to Sync, as that is guaranteed to be a safe place to access this data.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TMap< FName, TObjectPtr< UClothingInteractor > > | ClothingInteractors | Cloth interactors currently created. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Called to update the cloth config without restarting the simulation. | ||
| UClothingInteractor * | |||
| void | CreateClothingInteractor
(
const UClothingAssetBase* ClothingAsset, |
Create a cloth specific interactor. | |
| void | Destroy all interactors. | ||
| void | Disable any currently set gravity override. | ||
| void | EnableGravityOverride
(
const FVector& InVector |
Set a new gravity override and enable the override. | |
| UClothingInteractor * | GetClothingInteractor
(
const FString& ClothingAssetName |
Return a cloth interactor for this simulation. | |
| int32 | GetNumCloths () |
Return the number of cloths run by the simulation. | |
| int32 | Return the number of dynamic (simulated) particles. | ||
| int32 | Return the solver number of iterations. | ||
| int32 | Return the number of kinematic (animated) particles. | ||
| int32 | Return the solver number of subdivisions./ This could be different from the number set if the simulation hasn't updated yet. | ||
| float | Return the instant average simulation time in ms. | ||
| void | Called to update collision status without restarting the simulation. | ||
| void | SetAnimDriveSpringStiffness
(
float InStiffness |
Set the stiffness of the spring force for the animation drive. | |
| void | SetMaxNumIterations
(
int32 MaxNumIterations |
Set the maximum number of solver iterations. | |
| void | SetNumIterations
(
int32 NumIterations |
Set the number of time dependent solver iterations. | |
| void | SetNumSubsteps
(
int32 NumSubsteps |
Set the number of substeps or subdivisions. | |
| void | Sync
(
IClothingSimulation* Simulation, |
Sync the interactor to the provided context for the clothing simulation to use on its next update. |