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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
direction |
Vector2 |
Returns
Section titled “Returns”void