Interpolate To#
Function which iterpolates one step from a current value to a target value with a given speed. Vectors are interpolated component-wise. Interpolation can be applied to decimal types. The interpolation provides an eased approach to the target, adjust speed and exponent to tweak the curve. The formula is: result = current + (target - current) ‘*’ (1 - clamp(0, speed ‘*’ deltaSeconds, 1))^exp. For quaternions, the node performs a spherical linear interpolation (SLERP) with alpha = (1 - clamp(0, speed ‘*’ deltaSeconds, 1))^exp
Installation#
To use this Node, you must enable omni.graph.nodes
in the Extension Manager.
Inputs#
Name |
Type |
Description |
Default |
---|---|---|---|
current |
|
The current value |
|
target |
|
The target value |
|
speed |
|
The peak speed of approach (Units / Second) |
1.0 |
deltaSeconds |
|
The step time for the interpolation (Seconds) |
|
exponent |
|
The blend exponent, which is the degree of the ease curve (1 = linear, 2 = quadratic, 3 = cubic, etc). |
2.0 |
Outputs#
Name |
Type |
Description |
Default |
---|---|---|---|
Result (result) |
|
The interpolated result |