Navigation
API > API/Runtime > API/Runtime/GeometryCollectionEngine > API/Runtime/GeometryCollectionEngine/GeometryCollection > API/Runtime/GeometryCollectionEngine/GeometryCollection/UGeometryCollect-_1
References
| Module | GeometryCollectionEngine |
| Header | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionComponent.h |
| Include | #include "GeometryCollection/GeometryCollectionComponent.h" |
| Source | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Private/GeometryCollection/GeometryCollectionComponent.cpp |
UFUNCTION (BlueprintCallable, Category="ChaosPhysics")
void ApplyInternalStrain
(
int32 ItemIndex,
const FVector & Location,
float Radius,
int32 PropagationDepth,
float PropagationFactor,
float Strain
)
Remarks
Apply an internal strain to specific piece of the geometry collection
Parameters
| Name | Description |
|---|---|
| ItemIndex | item index ( from HitResult) of the piece to apply strain on |
| Location | world location of where to apply the strain |
| Radius | radius from the location point to apply the strain to ( using the center of mass of the pieces ) |
| PropagationDepth | How many level of connection to follow to propagate the strain through |
| PropagationFactor | when using propagation, the factor to multiply the strain from one level to the other, allowing falloff effect |
| Strain | strain / damage to apply |