Extensions.StickDeadzone
Extension Method in Extensions
Declaration
public static void StickDeadzone(this ref Vector2 input, float min, float max)
Description
Clamps the input magnitude below min to zero and above max to one.
Parameters
input | The input value to clamp. |
min | The minimum deadzone value. |
max | The maximum deadzone value. |