Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USkeletalMeshComponent
Description
Add a collision source for the cloth on this component. Each cloth tick, the collision defined by the physics asset, transformed by the bones in the source component, will be applied to cloth.
| Name | AddClothCollisionSource |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h |
| Include Path | #include "Components/SkeletalMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SkeletalMeshComponentPhysics.cpp |
UFUNCTION (BlueprintCallable, Category="Clothing")
void AddClothCollisionSource
(
USkeletalMeshComponent * InSourceComponent,
UPhysicsAsset * InSourcePhysicsAsset
)
Parameters
| Name | Remarks |
|---|---|
| InSourceComponent | The component to extract collision transforms from |
| InSourcePhysicsAsset | The physics asset that defines the collision primitives (that will be transformed by InSourceComponent's bones) |