Navigation
BlueprintAPI > BlueprintAPI/Math > BlueprintAPI/Math/Interpolation
Uses a simple spring model to interpolate a quaternion from Current to Target.
Target is Kismet Math Library
Inputs
| Type | Name | Description |
|---|---|---|
| exec | In | |
| struct | Current | Current value |
| struct | Target | Target value |
| struct | Spring State | Data related to spring model (velocity, error, etc..) - Create a unique variable per spring |
| real | Stiffness | How stiff the spring model is (more stiffness means more oscillation around the target value) |
| real | Critical Damping Factor | How much damping to apply to the spring (0 means no damping, 1 means critically damped which means no oscillation) |
| real | Delta Time | Time difference since the last update |
| real | Mass | Multiplier that acts like mass on a spring |
| real | Target Velocity Amount | If 1 then the target velocity will be calculated and used, which results following the target more closely/without lag. Values down to zero (recommended when using this to smooth data) will progressively disable this effect. |
| boolean | Initialize from Target | If set then the current value will be set from the target on the first update |
Outputs
| Type | Name | Description |
|---|---|---|
| exec | Out | |
| struct | Return Value |