# Ground Follow

ARC comes with a Ground Follow component, this component will keep the rotorcraft at a set height off the ground as it moves around and the ground lowers/ raises. Just add the compoent when building your prefab, or select the GameObject with the RotorcraftBehaviour component -> click 'Add Component' -> search and add 'RotorcraftGroundFollow'.

It is recommended to not allow the player to change the height of the rotorcraft when using the Ground Follow component.

![](/files/-Miwcbk23vI64e5fi_am)

**Distance From Ground** - How high you want the rotorcraft to stay above the ground.

**Height Change Speed** - This value controls how quickly the height will update, a higher value will move the rotorcraft up/down faster which results in following the ground height change more closely.

**Descent Multiplier** - For the occasions where the rotorcraft manages to get higher off the ground than the value set by 'Distance From Ground', this multiplier will bring the rotorcraft back down to the correct height faster.

**Ground Check** - The ground follow is achieved with a raycast, when stationary the raycast starts at the center of the rotorcraft and is shot downwards. This works great until the rotorcraft is moving, the rotation of the model can then collide with the ground before the raycast hits anything that would change the height. These two Vector 3 values are for you to set the position when going forward/ backwards.

![Raycast shot down from the center of the rotorcraft](/files/-MiwgklBYTTJrkZlriwy)

![Upon moving forward, the raycast moves to the front of the rotorcraft](/files/-Miwgo-I3rqCy5AXow-G)

![When moving backwards, the raycast moves to the rear of the rotorcraft](/files/-MiwgrVZ0mcjgSBmmd0D)


---

# 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://arcdocs.enigma23.co.uk/how-to/ground-follow.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.
