Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UBlueprintSpringMathLibrary
Description
Estimates an approximate smoothing time from a stopping time for a character using by a simple damped spring. Assumes the initial acceleration is zero.
| Name | SpringCharacterSmoothingTimeFromStoppingTime |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/BlueprintSpringMathLibrary.h |
| Include Path | #include "Kismet/BlueprintSpringMathLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/BlueprintSpringMathLibrary.cpp |
UFUNCTION (BlueprintPure, Meta=(Category="Math|Spring", ReturnDisplayName="Smoothing Time"))
static float SpringCharacterSmoothingTimeFromStoppingTime
(
const float InitialVelocity,
const float StoppingTime,
const float VelocityThreshold
)
An estimation of the SmoothingTime of the spring
Parameters
| Name | Remarks |
|---|---|
| InitialVelocity | The velocity of the character at the start of the stop |
| StoppingTime | The time taken to come to a stop |
| VelocityThreshold | The velocity threshold at which the character is considered to be stopped in cm/s |