Motion
Get Motion

ReferenceScripting APIRotator

Rotator

interface

Pitch, yaw and roll, in degrees.

NameRotator
Kindinterface
Script reaches it asimport { Rotator } from "motion" · Mote.rotation · Mote.angularVelocity · BodyComponent.angularVelocity
Since0.3

Syntax

interface Rotator { … }

Properties

NameTypeDescription
pitchpropertynumberTipped up or down, degrees.
yawpropertynumberTurned left or right, degrees (a 2D mote's turn).
rollpropertynumberRolled about the way it faces, degrees.