Type of interpolation to use for movement
public enum MoveModeRemarks
Movement is computed according to the movement type with a parametric parameter ‘t’ that varies from zero to one.
- Linear movement is directly proportional to ‘t’.
- Ease-in movement is proportional to ‘t^2’.
- Ease-out movement is computed with ‘t*(2-t)’.
- Smoothstep interpolation uses ‘(3-2t)*t^2’.
Values
| Value | Description |
|---|---|
EaseIn Added in 32.0.0 | Ease In. The object with move slowly at first and quickly at the end. |
EaseOut Added in 32.0.0 | Ease Out. The object with move quickly at first and slow down at the end. |
Linear Added in 32.0.0 | Linear Interpolation. The object will move at a constant velocity. |
Smoothstep Added in 32.0.0 | Smoothstep Interpolation. The object with speed up and slow down smoothly when moving. |
Used in examples
- MoverExample1.cs
- MoverExample2.cs
- MoverExample3.cs
MoverExample4.cs- ScriptLibrary/Scene/Mover.cs
Generated from the Sansar 47.10.0 client ScriptApi snapshot.