ControlInput

interface ControlInput
rigidBody.ts:146

Members

rotationreadonly

rotation: Vec3

−1..1 per body axis: pitch (X), yaw (Y), roll (Z).

throttlereadonly

throttle: number

0..1: how hard the main drive burns. Zero is a cold drive.

translationreadonly

translation: Vec3

−1..1 per body axis for the thrusters: right, up, ahead. Forward is −Z, so a +1 on the third asks for thrust ahead and a −1 for a retro.