applyRadialDeadzone
applyRadialDeadzone(
x,y,deadzone):Vec2
Defined in: deadzone.ts:13
Radial dead-zone with magnitude rescale: inside deadzone the result is
Vec2.ZERO; outside, direction is preserved and the magnitude ramps from
0 at the dead-zone edge to 1 at full deflection (clamped). This is the
response curve getStick applies to pad hardware — exported so synthetic
stick sources (virtual/touch controls) can shape their own values with
the exact same curve instead of re-deriving it.
deadzone must be in [0, 1).
Parameters
Section titled “Parameters”number
number
deadzone
Section titled “deadzone”number
Returns
Section titled “Returns”Vec2