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

inputThe input value to clamp.
minThe minimum deadzone value.
maxThe maximum deadzone value.