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