# Sprint Component

The Sprint Component provides an alternative movement mode for players. When holding (or pressing) the Sprint Key, the player accelerates towards a sprint bonus speed that can be configured in this component.

The component also detects if the player is moving backwards or sideways and aborts the sprint. \
\
While the player sprints, a camera shake is applied.&#x20;

When the player stops sprinting, the applied camera shake gradually wears off.

### Configuration

<table><thead><tr><th width="251">Variable</th><th>Description</th></tr></thead><tbody><tr><td>Is Input Toggle</td><td>If true, the input key is used as toggle. This is especially useful for use on gamepads where it is more tiring to hold down a button.</td></tr><tr><td>Sprint Speed</td><td>Speed in Units per second that the character should accelerate towards to, on top of their base speed, when sprinting.</td></tr><tr><td>Sprint Shake Curve</td><td><p>The curve vector used to move the camera when sprinting.<br><br>The <code>Red</code> line, X, translates to the <strong>Roll</strong> added to the camera.</p><p>The <code>Green</code> line, Y, translated to the <strong>Pitch</strong> added to the camera.</p><p>The <code>Blue</code> line, Z, translates to the <strong>Yaw</strong> added to the camera.<br><br><img src="/files/eqdHGdrWCc2LTnbRsYwZ" alt=""></p></td></tr><tr><td>Sprint Shake Fallout Smoothness</td><td>Interpolation Speed used to smooth the current camera shake towards null, once the player stops sprinting.<br>If the speed is 0, it will immediately jump to the target position.</td></tr><tr><td>Sprint Acceleration Curve</td><td>The curve float used to accelerate the player into sprinting to <code>SprintSpeed</code>.</td></tr><tr><td>Show Debug Information</td><td>If true, various useful variables will be printed on the screen to help with debugging.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kia.dev/motion/core-components/sprint-component.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
