Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UBlueprintSpringMathLibrary
Description
Interpolates the value InOutX towards TargetX with the motion of a critically damped spring. The velocity of X is stored in InOutV.
| Name | CriticalSpringDampVector |
| 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 (BlueprintCallable, Meta=(Category="Math|Spring|Experimental"))
static void CriticalSpringDampVector
(
FVector & InOutX,
FVector & InOutV,
const FVector & TargetX,
float DeltaTime,
float SmoothingTime
)
Parameters
| Name | Remarks |
|---|---|
| InOutX | The value to be damped |
| InOutV | The speed of the value to be damped |
| TargetX | The goal to damp towards |
| SmoothingTime | The smoothing time to use for the spring. Longer times lead to more damped behaviour. A time of 0 will snap InOutX to TargetX |
| DeltaTime | Timestep in seconds |