Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/SpringMath
Description
Specialized scale damper, similar to FMath::ExponentialSmoothingApprox but for scales. Smooths a value using exponential damping towards a target.
| Name | ExponentialSmoothingApproxScale |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/SpringMath.h |
| Include Path | #include "Math/SpringMath.h" |
static void ExponentialSmoothingApproxScale
(
FVector & InOutScale,
const FVector & InTargetScale,
const float InDeltaTime,
const float SmoothingTime
)
Parameters
| Name | Remarks |
|---|---|
| InOutScale | The value to be smoothed |
| InTargetScale | The target to smooth towards |
| InDeltaTime | Time interval |
| SmoothingTime | Timescale over which to smooth. Larger values result in more smoothed behaviour. Can be zero. |