Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Animation/SlateSprings.h |
Include |
#include "Animation/SlateSprings.h" |
template<typename FloatType>
class TSpring1D
One-dimensional spring simulation
Name | Description | |
---|---|---|
|
TSpring1D() |
Constructor |
|
TSpring1D ( |
Construct at specified position |
Name | Description | ||
---|---|---|---|
|
GetPosition() |
Gets the current position of the spring |
|
|
GetTarget() |
Gets the target position |
|
|
IsAtRest() |
||
|
SetConfig ( |
Sets the config for this spring |
|
|
SetPosition ( |
Sets the current position (and target position) for the spring |
|
|
SetTarget ( |
Sets the target position for the spring |
|
|
Tick ( |
Updates the simulation. Should be called every tick! |
Name |
Description |
|
---|---|---|
|
FSpringConfig |
Spring configuration |