Expand description
Procedural motion so the world does not feel frozen: water ripples, foliage swaying in the wind, floating crystals.
Motion is a per-node and per-tile flag evaluated at draw time (viewer) —
no keyframes, no skinning involved. The offset is computed in WORLD space
from the moving vertex position, so it works for meshes, tilemap cells and
skinned rigs alike. The sprite baker (iso::bake) bakes at rest per
default; with anim_frames > 1 it renders one motion cycle per view
using Motion::offset_loop, which guarantees a seamless loop.
Enums§
- Motion
- Loopable wind/water oscillation attached to a node or tile.
Functions§
- any_
motion - Does the document contain any moving object (nodes or kit tiles)? The viewer uses this to decide whether to keep repainting.
- cell_
phase - Stable phase per tile cell so a lake does not wave in lockstep.
- node_
phase - Stable phase per node id.