Skip to content

Get Sansar

Script API

InterpolationMode

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Enum Namespace Sansar.Simulation Added in 37.0.0

Type of interpolation to use for various interfaces

public enum InterpolationMode

Remarks

The output value is computed according to the interpolation type with a parametric parameter ‘t’ that varies from zero to one.

  • Linear is directly proportional to ‘t’.
  • Ease-in is proportional to ‘t^2’.
  • Ease-out is computed with ‘t*(2-t)’.
  • Smoothstep interpolation uses ‘(3-2t)*t^2’.
  • Step interpolation uses ‘0’ for ‘t<0.5’ and ‘1’ for ‘t>=0.5’.

Values

ValueDescription
EaseIn Added in 37.0.0Ease In. The value will gradually speed up and continue quickly at the end.
EaseOut Added in 37.0.0Ease Out. The value will change quickly at first and slow down to smoothly reach the goal.
Linear Added in 37.0.0Linear Interpolation. The value will change at a constant rate.
Smoothstep Added in 37.0.0Smoothstep Interpolation. The value will speed up gradually and slow down to smoothly reach the goal.
Step Added in 37.0.0Step. The value will step abruptly from the initial value to the final value half-way through.

Generated from the Sansar 47.10.0 client ScriptApi snapshot.