public void ApplyDeadZone(double dead) { var res = Numerics.DeadZoneCalculation(X, Y, dead); X = res.x; Y = res.y; res = Numerics.DeadZoneCalculation(RotationZ, 0, dead); RotationZ = res.x; }
public void ApplyDeadZone(double dead) { var left = Numerics.DeadZoneCalculation(LeftThumbX, LeftThumbY, dead); var right = Numerics.DeadZoneCalculation(RightThumbX, RightThumbY, dead); LeftThumbX = Math.Round(left.x, 3); LeftThumbY = left.y; RightThumbX = right.x; RightThumbY = right.y; }