Contact Zones Calculations

Each batter has different sizes for each of the Sour/Nice/Perfect contact zones. These are determined by the following algorithm.

## Step 1: Scale the standard zones using the contact multipliers

The zones are defined according to their boundaries delimitating each zone, which we will call the thresholds. The left perfect threshold is the boundary between perfect and nice left contact, and left nice threshold is the boundary between left nice and left sour. The same thresholds exist on the right side.

The swing type and trimmed bat specify the range the threshold can be in, and the exact value depends on the specific character and the number of chemistry links on base. The ranges are found in the table below. The batter’s contact size multiplier is used to linearly interpolate between the upper and lower limits of the range to give the final threshold value.

For slap hits, chemistry multiplies the linear interpolation parameter by 1.05x, 1.1x, and 1.2x for 1, 2, and 3 links respectively. Note: because of the chemistry impact, the linear interpolation factor can be above 1, so the actual threshold can be outside of the range.

Formula

*Threshold = upper bound of the range \* x + lower bound of the range \* (1 - x)*

*Where x = character's contact size factor/100 \* chemistry for slap hits*

Threshold ranges for each delineation.
First number = lower bound, second number = upper bound, even if the 2nd number is smaller than the first number. This is because the ranges are being scaled away from 100 (perfect)
Left Perfect: 98 to 95
Right Perfect: 106 to 109
Right Nice: 150 to 170
Left Perfect: 96 to 93
Right Perfect: 104 to 107
 Charge
Left Perfect: 99 to 97
Right Perfect: 101 to 103
Right Nice: 150 to 170
Left Perfect: 96 to 93
Right Perfect: 104 to 107
 Star
Left Perfect: 98 to 95
Right Perfect: 102 to 105
Right Nice: 120 to 165
Left Perfect: 98 to 95
Right Perfect: 102 to 105
 Bunt
Left Perfect: 99 to 97
Right Perfect: 101 to 103
Right Nice: 140 to 160
Left Perfect: 99 to 97
Right Perfect: 101 to 103
Right Nice: 140 to 160

The contact multipliers for each character depending on the type of swing are found in the batting stats page. Captain star swings default to 100, and non-captain star swings use the charge values.

The best scaling for slap hits is Waluigi with a 90% interpolation factor towards the widest part of the ranges. With 3 chemistry links, this factor is 108% (=90%\*1.2), which is 8% above the widest part of the range.

For charge hits, Boo and Peach have the widest contact zones at 45% towards the widest part of the ranges. Chemistry doesn't impact charge swing contact zones.

## Step 2: Apply the asymmetric scaling

There are two more scaling factors that modify the left and right thresholds independently: left and right horizontal scaling factors. How exactly they impact the calculations still needs to be written down, but essentially, these factors squeeze/stretch the thresholds away from the middle even more, but not symmetrically if they aren't the same values.

These factors are why Bowser has a vary large right-nice zone but his left-nice zone is normally sized.

## Zones for each batter

All of the final contact zones can be visualized at the following link: https://discord.com/channels/628353660698624020/979122361762709504/1007676427656777738