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

decimal_scalers, decimal_tuples, decimal_arrays

The current value

target

decimal_scalers, decimal_tuples, decimal_arrays

The target value

speed

double

The peak speed of approach (Units / Second)

1.0

deltaSeconds

double

The step time for the interpolation (Seconds)

exponent

float

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)

numerics

The interpolated result