# Floating Item

Presented by FloatingItem class, it makes gameobject continuously move up and down with certain amplitude and speed. This movement automatically begins when its gameobject becomes active on scene.

<figure><img src="https://1131436974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9rEHd0nHFvWCSkMEfAjl%2Fuploads%2FxtDqtES2NGIiT5VOayJW%2Fimage.png?alt=media&#x26;token=47406fb3-1b04-439b-9ced-fff2378aeb2a" alt=""><figcaption><p>Floating Item component</p></figcaption></figure>

### Parameters in inspector

**Floating Amplitude** – movement amplitude

**Floating Speed** – movement speed

***

### Available methods

```csharp
public void Restart()
```

*This method instantly moves gameobject to initial position.*


---

# 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://heroicsolo.gitbook.io/heroic-engine/basics/useful-components/floating-item.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.
