API Reference › Motion
namespace

Motion

Ergonomic control of the engine-owned Motion component — the value tween the engine advances each tick (see the ECS engine-systems). Motion.to starts a tween on an entity from one value to another over a number of ticks with an easing curve, rewinding it so it plays from the start, instead of setting the component's from/to/dur/ease fields by hand. The tween is integer and deterministic, so motion reproduces exactly under replay and lockstep. For a standalone, sequenced tween not tied to a component, see the fluent Tween handles. Related: Anim, Ease, Tween.

Motion.to(entity, from, to, dur, ease)Start a value tween on an entity's Motion component in one call.
← All symbols