UBlueprintSpringMathLibrary::ConvertStrengthToSmoothingTime
#include "Kismet/BlueprintSpringMathLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Converts a spring's strength (undamped frequency in Hz) into its equivalent smoothing time in seconds. This is the inverse of ConvertSmoothingTimeToStrength, useful when a system exposes strength but the spring/damp functions here take a smoothing time.
Caveats & Gotchas
- • Not itself marked UE_EXPERIMENTAL, but it lives on an Experimental UCLASS (UBlueprintSpringMathLibrary) and only makes sense alongside the other spring/damping functions, which are experimental.
- • A Strength of 0 corresponds to infinite smoothing time (no damping at all); passing a negative Strength is not a physically meaningful input and is not validated by the function.
Signature
static float ConvertStrengthToSmoothingTime(float Strength); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Strength | float | The spring strength, corresponding to the undamped frequency of the spring in Hz. | — |
Return Type
float Example
Convert a spring strength back to a smoothing time C++
float SmoothingTime = UBlueprintSpringMathLibrary::ConvertStrengthToSmoothingTime(5.0f);
// SmoothingTime can now be fed directly into DampFloat / CriticalSpringDampFloat Tags
Version History
Introduced in: 5.7
| Version | Status | Notes |
|---|---|---|
| 5.7 | experimental | SpringMath is experimental. |
Feedback
Was this helpful?