# MoveMode

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 32.0.0</span>
</div>

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

Type of interpolation to use for movement

```csharp
public enum MoveMode
```

## Remarks

Movement is computed according to the movement type with a parametric parameter &#39;t&#39; that varies from zero to one.



- Linear movement is directly proportional to &#39;t&#39;.
- Ease-in movement is proportional to &#39;t^2&#39;.
- Ease-out movement is computed with &#39;t\*(2-t)&#39;.
- Smoothstep interpolation uses &#39;(3-2t)\*t^2&#39;.

## Values

| Value | Description |
|---|---|
| <span id="easein"></span><span id="F:Sansar.Simulation.MoveMode.EaseIn"></span>`EaseIn` <span class="api-badge api-since">Added in 32.0.0</span> | Ease In. The object with move slowly at first and quickly at the end. |
| <span id="easeout"></span><span id="F:Sansar.Simulation.MoveMode.EaseOut"></span>`EaseOut` <span class="api-badge api-since">Added in 32.0.0</span> | Ease Out. The object with move quickly at first and slow down at the end. |
| <span id="linear"></span><span id="F:Sansar.Simulation.MoveMode.Linear"></span>`Linear` <span class="api-badge api-since">Added in 32.0.0</span> | Linear Interpolation. The object will move at a constant velocity. |
| <span id="smoothstep"></span><span id="F:Sansar.Simulation.MoveMode.Smoothstep"></span>`Smoothstep` <span class="api-badge api-since">Added in 32.0.0</span> | Smoothstep Interpolation. The object with speed up and slow down smoothly when moving. |

## Used in examples

- [MoverExample1.cs](/scripting/examples/mover-examples)
- [MoverExample2.cs](/scripting/examples/mover-examples)
- [MoverExample3.cs](/scripting/examples/mover-examples)
- `MoverExample4.cs`
- [ScriptLibrary/Scene/Mover.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/ScriptLibrary/Scene/Mover.cs)

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