# Public Methods

| Method                                     | Description                                                                                                                                                                           |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SetVehicleSettings()                       | Updates the vehicle settings from the VehicleSettings ScriptableObject. Called in Awake() and from the update button located on the component in the inspector.                       |
| ControlAcceleration()                      | Makes the vehicle move forward, use this to call forward movement from your input class.                                                                                              |
| ControlBrake()                             | Makes the vehicle brake, or reverse, use this to call backwards movement from your input class.                                                                                       |
| ControlTurning(int)                        | <p>Controls the turning of the vehicle, and takes in an int to determine the direction.<br> -1 for left<br> 1 for right</p>                                                           |
| SetPosition(Vector3, Quaternion)           | Used to reposition and rotate the vehicle, best used for respawning. Pass in a Vector3 for the new position and a Quaternion for the rotation.                                        |
| MovementPenalty(float)                     | Used to change the MaxSpeed of the vehicle. Example use: slowing down on grass.                                                                                                       |
| SteeringPenalty(float)                     | Used to change the Steering speed of the vehicle. Example use: making it harder to turn on grass.                                                                                     |
| Jump(float, ForceMode = ForceMode.Impulse) | <p>Make the vehicle jump, pass in a force big enough to get it off the ground at the height you want. ForceMode is optional, uses Impulse by default.</p><p></p><p>Added in v1.16</p> |
| Boost()                                    | Used to set the vehicle boosting, changes isBoosting to true.                                                                                                                         |
| OneShotBoost(float)                        | Performs a boost over a set amount of time (in seconds).                                                                                                                              |
| StopBoost()                                | Changes isBoosting to false returning the vehicle to MaxSpeed.                                                                                                                        |


---

# 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://avcdocs.enigma23.co.uk/script-reference/public-methods.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.
