Skip to content

steerFromStick

steerFromStick(direction): void

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

Points the stick where the player’s thumb is. The direction is copied, so the caller keeps its own vector.

Parameter Type
direction Vector2

void