Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Units > API/Plugins/ControlRig/Units/Simulation
Inheritance Hierarchy
References
| |
|
| Module |
ControlRig |
| Header |
/Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Units/Simulation/RigUnit_SpringInterp.h |
| Include |
#include "Units/Simulation/RigUnit_SpringInterp.h" |
Syntax
USTRUCT (
Meta=(DisplayName="Spring Interpolate", Keywords="Alpha,SpringInterpolate,Verlet", Category="Simulation|Springs", TemplateName="SpringInterp"))
struct FRigUnit_SpringInterpV2 : public FRigVMFunction_SimBase
Uses a simple spring model to interpolate a float from Current to Target.
Variables
| |
Type |
Name |
Description |
 |
bool |
bInitializeFromTarget |
If true, then the initial value will be taken from the target value, and not from the current value. |
 |
bool |
bUseCurrentInput |
If true, then the Current input will be used to initialize the state, and is required to be a variable that holds the current state. |
 |
float |
CriticalDamping |
The amount of damping in the spring. |
 |
float |
Current |
Current position of the spring. |
 |
float |
Force |
Extra force to apply (since the mass is 1, this is also the acceleration). |
 |
float |
Result |
New position of the spring after delta time. |
 |
float |
SimulatedResult |
|
 |
FFloatSpringState |
SpringState |
|
 |
float |
Strength |
The spring strength determines how hard it will pull towards the target. |
 |
float |
Target |
Rest/target position of the spring. |
 |
float |
TargetVelocityAmount |
The amount that the velocity should be passed through to the spring. |
 |
float |
Velocity |
Velocity |
Constructors
| |
Type |
Name |
Description |
 |
|
|
|
Functions
| |
Type |
Name |
Description |
 |
|
|
|