Skip to content

MovementIntent

MovementIntent = Vector2

Defined in: packages/engine/src/platform/input.ts:53

Where the player is steering, in camera space: x is right, y is forward up the screen. A vector rather than a flag per direction, so a source that is not the keyboard can point anywhere between them. Its direction is where she goes and its length is how fast, capped at one, so a half-pushed thumb walks. The shape is realm’s VectorAction, from packages/engine/src/input/actions.ts on threejs-game-template v2.