# Speed Ground Changer

## Overview

This component allows the character to walk on a slippery surface or slide on it.

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2Fbl5lj0tFnJjGfr1nT948%2Fimage.png?alt=media&#x26;token=2d938611-272c-42a5-a36a-2de9648fb3e8" alt="" width="512"><figcaption></figcaption></figure>

This component simulates walking on ice

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FSObuJGW0snjdpk5WCa3Y%2FUnity_8mvv7ZGWic.gif?alt=media&#x26;token=5275f711-f95f-44a1-a2ff-2ab4f014087a" alt=""><figcaption></figcaption></figure>

## Parameters

### Lerp

This will make the ground slippery if the value is very low. Set it to Zero to ignore the Sliding Speed

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2F3HYvcjC0x4FxFjNaDR72%2FUnity_KnY5daD8KX.gif?alt=media&#x26;token=b4060b73-2883-4a58-9763-e4738c7e7438" alt="" width="518"><figcaption></figcaption></figure>

### Position

Increase the movement speed while the character is on the ground changer

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FPrBdmK2EazxHJgCOdMyw%2FUnity_MQRDNhhfBR.gif?alt=media&#x26;token=0df44505-69ff-46ac-b927-a8c63f72794b" alt="" width="509"><figcaption></figcaption></figure>

### Slide Amount

Slide Override on the Animal Controller. When the Animal gets to a Slide on the ground because of a Slope, This is the value for sliding down with gravity

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FgahoAV6K8hES4a8igs9N%2FUnity_JmOhVesQSZ.gif?alt=media&#x26;token=9c66caf4-e6d5-450e-9508-4146191be53a" alt="" width="500"><figcaption></figcaption></figure>

### Slide Threshold

Slide activation using the Max Slope Limit if the slope angle between this value and the Max Slope value, then the sliding will start.

### Slide Damp

Lerp value to smoothly slide down the ramp

***

## Slide Data

### Slide

Activates the Slide State if the character is on this surface and the activations conditions of the slide state are true

### Ignore Rotation

If true, then the rotation of the character will be ignored during the Slide State

### Min Angle

Minimum Slope Direction Angle to activate the Slide State

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2F4e1oHFB54xLc70VqIHuH%2FUnity_N2TOvwBuqs.gif?alt=media&#x26;token=e52f9d9e-4aec-4c29-bd25-b3ee4451d535" alt="" width="563"><figcaption></figcaption></figure>

### Activation Angle

Slide activation angle to activate the state. The character needs to be looking/aligned at the Slope, Default value of 180

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FXzG7wNkvIjahsKjjUtrv%2FUnity_jspuQ9awyg.gif?alt=media&#x26;token=1542e332-34db-4d29-8e8f-62836d4b869a" alt="" width="509"><figcaption><p>The character is not in the same direction of the Slope Direction.</p></figcaption></figure>

&#x20;Meaning it will only activate the state if is going in the same direction as the slope.

### Additive Forward Speed

Additive Value to add to the Speed of the Slide State

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FZFDllPsUfXGex0nB5Z7A%2FUnity_AT5bdWs5FS.gif?alt=media&#x26;token=4ca0e95f-27cc-43d8-9251-31e54c28142f" alt="" width="563"><figcaption></figcaption></figure>

### Additive Horizontal Speed

Additive Value to add to the Speed of the Slide State

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2Fo47Vw5BMuXA7YadD7HQp%2FUnity_0IPML345wq.gif?alt=media&#x26;token=9c046a80-6f08-4559-82f2-12e45b8ede51" alt="" width="563"><figcaption></figcaption></figure>

***

## Reactions

Use these reactions to add extra logic to your characters. E.g. Disable the Jump State if the character is going up on a slippery surface.

### OnEnter

Invoked when the character enters the Ground Changer

### OnExit

Invoked when the character enters the Ground Changer
