# InterpolationMode

Kind: Enum · Namespace: Sansar.Simulation · Assembly: Sansar.Simulation.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-enum" data-pagefind-filter="kind:Enum">Enum</span>
<span data-pagefind-filter="namespace:Sansar.Simulation">Namespace <a href="/scripting/api/sansar.simulation"><code>Sansar.Simulation</code></a></span>
<span class="api-badge api-since">Added in 37.0.0</span>
</div>

<span id="T:Sansar.Simulation.InterpolationMode"></span>

Type of interpolation to use for various interfaces

```csharp
public enum InterpolationMode
```

## Remarks

The output value is computed according to the interpolation type with a parametric parameter &#39;t&#39; that varies from zero to one.



- Linear is directly proportional to &#39;t&#39;.
- Ease-in is proportional to &#39;t^2&#39;.
- Ease-out is computed with &#39;t\*(2-t)&#39;.
- Smoothstep interpolation uses &#39;(3-2t)\*t^2&#39;.
- Step interpolation uses &#39;0&#39; for &#39;t&lt;0.5&#39; and &#39;1&#39; for &#39;t&gt;=0.5&#39;.

## Values

| Value | Description |
|---|---|
| <span id="easein"></span><span id="F:Sansar.Simulation.InterpolationMode.EaseIn"></span>`EaseIn` <span class="api-badge api-since">Added in 37.0.0</span> | Ease In. The value will gradually speed up and continue quickly at the end. |
| <span id="easeout"></span><span id="F:Sansar.Simulation.InterpolationMode.EaseOut"></span>`EaseOut` <span class="api-badge api-since">Added in 37.0.0</span> | Ease Out. The value will change quickly at first and slow down to smoothly reach the goal. |
| <span id="linear"></span><span id="F:Sansar.Simulation.InterpolationMode.Linear"></span>`Linear` <span class="api-badge api-since">Added in 37.0.0</span> | Linear Interpolation. The value will change at a constant rate. |
| <span id="smoothstep"></span><span id="F:Sansar.Simulation.InterpolationMode.Smoothstep"></span>`Smoothstep` <span class="api-badge api-since">Added in 37.0.0</span> | Smoothstep Interpolation. The value will speed up gradually and slow down to smoothly reach the goal. |
| <span id="step"></span><span id="F:Sansar.Simulation.InterpolationMode.Step"></span>`Step` <span class="api-badge api-since">Added in 37.0.0</span> | Step. The value will step abruptly from the initial value to the final value half-way through. |



<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>