# Speed

<mark style="color:blue;">Speed</mark> is one of the primary stats in Alpaca Dash, determining how fast your alpaca can run during races. A higher <mark style="color:blue;">Speed</mark> stat allows your alpaca to reach and maintain top speeds more effectively, giving you a competitive edge in straight-line sprints and on speed-focused tracks.

The <mark style="color:blue;">Speed</mark> stat is broken down into several components:

* <mark style="color:blue;">Top Speed</mark>: The maximum speed your alpaca can achieve.
* <mark style="color:blue;">Sprint Threshold Speed</mark>: The speed at which your alpaca transitions into a sprint.
* <mark style="color:blue;">Rest Threshold Speed</mark>: The speed at which your alpaca transitions into a rest state.

### Speed Stat Conversion

| Stat                              | Min - 0 | Max - 100 |
| --------------------------------- | ------- | --------- |
| Top Speed                         | 15.4    | 17        |
| Sprint Threshold Speed Multiplier | 0.85    | 0.85      |
| Rest Threshold Speed Multiplier   | 0.7     | 0.7       |

$$
TopSpeed = Min + (((Max - Min) \* Speed) / 100)
$$

$$
TopSpeed = 15.4 + ((1.6 \* Speed) / 100)
$$

***

$$
Sprint Threshold Speed = TopSpeed \* SprintThresholdSpeedMultiplier
$$

$$
Rest Threshold Speed = TopSpeed \* RestThresholdSpeedMultiplier
$$
