Skip to content

1681-engine / index / stickVector

Function: stickVector() ​

ts
function stickVector(
   dx, 
   dy, 
   radius
): StickVector;

Defined in: src/input/stickAxis.ts:18

The thumb's offset from where the stick was planted, as a vector of length at most 1 (radius = full tilt).

Parameters ​

ParameterType
dxnumber
dynumber
radiusnumber

Returns ​

StickVector

Released under the MIT License.