> For the complete documentation index, see [llms.txt](https://profpivec.gitbook.io/documentation-and-tutorials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://profpivec.gitbook.io/documentation-and-tutorials/game-creator/mobile-components-for-game-creator/extras.md).

# Extras

There are two bonus extras included and can be found in the Scripts Folder.

1. GyroRotate
2. HoverMotor

### GyroRotate

Attach this script to any Game Object and add the Object to rotate to the appropriate slot in the script. The Object will rotate with the movement of the mobile device.

![](/files/-MQvuInmHxAVHpHmvI3D)

### HoverMotor

This script is used in Example 5 to control the Vehicle using the Steering Wheel and Pedal Touchsticks. You can attach it to any vehicle that you want to move like a Hover Bike. You can adjust the speed, turns, force and height to suit you needs.

![](/files/-MQvvCdJcD3RWub0VzPY)

The main purpose of this script is to show how you can use the Steering wheel and Pedal Touchsticks with any vehicle. The Steering Wheel provides the x Axis, and the Pedals provide the y Axis. Hence the Axis are applied to the script for powerInput and turnInput float feilds.

```
		powerInput = PivecLabs.Mobile.TouchStickPedals.yaxis;
		turnInput = PivecLabs.Mobile.TouchStickSteeringWheel.xaxis;

```

and the are applied to a Rigid Body as force and torque as shown.

```
	carRigidbody.AddRelativeForce(0f, 0f, powerInput;
	carRigidbody.AddRelativeTorque(0f, turnInput, 0f);
```

The bonus script also adds a multiplier of speed to the Force and turnSpeed to the Torque.

```
carRigidbody.AddRelativeForce(0f, 0f, powerInput * speed);
carRigidbody.AddRelativeTorque(0f, turnInput * turnSpeed, 0f);
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://profpivec.gitbook.io/documentation-and-tutorials/game-creator/mobile-components-for-game-creator/extras.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.
