Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

defineIdleMotion

defineIdleMotion(options): IdleMotionHandle

Declares an idle motion at module scope, so the <IdleMotion motion> that draws it and a character whose base rides it name one handle, as a defineTrait names a trait. Throws on a value the map’s schema refuses, naming it.

Parameter Type
options Readonly<{ height?: number; kind: Float; periodSeconds?: number; pitchRadians?: number; pivot?: readonly number[]; rollRadians?: number; seed?: number; waves?: boolean; }> | Readonly<{ angleRadians?: number; axis?: readonly number[]; kind: Sway; periodSeconds?: number; pivot?: readonly number[]; seed?: number; }>

IdleMotionHandle