Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/SpringMath
Description
Specialized angle damper, similar to FMath::ExponentialSmoothingApprox but deals correctly with angle wrap-around. Smooths an angle using exponential damping towards a target.
| Name | ExponentialSmoothingApproxAngle |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Animation/SpringMath.h |
| Include Path | #include "Animation/SpringMath.h" |
static void ExponentialSmoothingApproxAngle
(
float & InOutAngleRadians,
const float & InTargetAngleRadians,
const float InDeltaTime,
const float InSmoothingTime
)
Parameters
| Name | Remarks |
|---|---|
| InOutAngleRadians | The angle to be smoothed |
| InTargetAngleRadians | The target to smooth towards |
| InDeltaTime | Time interval |
| InSmoothingTime | Timescale over which to smooth. Larger values result in more smoothed behaviour. Can be zero. |