# Roll Component

## Overview

This component is used to move the character forward. Perfect for Sliding or Rolling mechanics. Make sure to add it directly to your character:

<figure><img src="https://1415000928-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUAC5B06XWM8YyqQzyIP2%2Fuploads%2FNJHjMeGeFuQ3M290O4CQ%2Fimage.png?alt=media&#x26;token=b0120158-858b-4e1b-91f1-66d3fb8a6110" alt="" width="433"><figcaption><p>Inspector.</p></figcaption></figure>

* **Capsule Height/Radius:** used for capsule trace to find an obstacle.
* **Layer Mask:** used to filter collision targets.
* **Rolling Asset:** Motion Warping Asset with rolling animation.
* **Roll Max/Min Distance:** max/min allowed movement distance.
* **Max Fall Off:** max allowed vertical offset for the target point.

## How does it work?

This component uses 2 stages to trace down the target point:

1. Try to find a blocking obstacle in the way. If an obstacle found, abort the interaction.
2. Trace down to find a target point. If no hit, stop the interaction.

After that the interaction will be initiated.

## Motion Warping Asset Requirements

Only 1 Warping Phase is required for this component to work properly.
