Skip to content

Get Sansar

Script API

MoveMode

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 32.0.0

Type of interpolation to use for movement

public enum MoveMode

Remarks

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

ValueDescription
EaseIn Added in 32.0.0Ease In. The object with move slowly at first and quickly at the end.
EaseOut Added in 32.0.0Ease Out. The object with move quickly at first and slow down at the end.
Linear Added in 32.0.0Linear Interpolation. The object will move at a constant velocity.
Smoothstep Added in 32.0.0Smoothstep Interpolation. The object with speed up and slow down smoothly when moving.

Used in examples

Generated from the Sansar 47.10.0 client ScriptApi snapshot.