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

angleInput

angleInput(angleInputOptions?): AngleInputDeclaration

A direction about one axis the player holds, which rides every tick’s input: a camera’s heading or pitch, a twin-stick’s aim. Its value is radians from 0 up to a full turn, which wraps, in 65,536 steps. It has no keys: the page sets it with setInput, as a camera does. When her input stops, as at a drop, it holds the last value the room took, so a character keeps facing where she faced.

Parameter Type
angleInputOptions AngleInputOptions

AngleInputDeclaration