# How to use Gravity Switching

## Controller Configuration

To use the Gravity Switching system your JU Character needs some essential changes, make sure the highlighted options are set like this:

<div align="left"><figure><img src="/files/esiC3fsn6yHUQ7yD68Rj" alt=""><figcaption></figcaption></figure></div>

## JU Gravity Switcher

Add this component so that the JU Character can adapt correctly to surfaces.

<div align="left"><figure><img src="/files/SUoSNJ5OyEMDhbf6fLKz" alt=""><figcaption></figcaption></figure></div>

| JU Gravity Switcher Parameters      | Description                                                                                                                    |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Enable Ground Placement             | It will adapt the JU Character's rotation to any surface without needing any external components, it will be like a sonic game |
| Speed                               | Aligning Speed                                                                                                                 |
| To Ground Force                     | (Optional) Add force in Ground Placement to fix the character on the ground                                                    |
| Disable Gravity On Direction Change | If gravity direction is different than usual, "Use Gravity" on rigidbody will be disabled                                      |

See Ground Placement working:

<div align="left"><figure><img src="/files/sgKt4sdsFA0pIeoaT1fn" alt=""><figcaption></figcaption></figure></div>

## Gravity Box

An invisible box that switch gravity direction

<div align="left"><figure><img src="/files/MG1oLICHa15GiTNNyxmS" alt=""><figcaption></figcaption></figure></div>

## Gravity Sphere

Like a planet 👍

<div align="left"><figure><img src="/files/dTv277vMC9wVuEJAcwYI" alt=""><figcaption></figcaption></figure></div>


---

# 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://julhiecio.gitbook.io/ju-tps-documentation/game-development/how-to-use-gravity-switching.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.
