# Physics Settings

## Editor Values

Unity's physics engine can be customized through the project settings panel. Only some values are available for games to customize in editor. Other values will need to be modified at runtime via TS code or not at all.

**Available to Customize In Editor:**

<div align="left"><figure><img src="/files/U4c9qbGRlF3w3hZ8v4ed" alt="" width="375"><figcaption></figcaption></figure></div>

* Gravity
* Bounce Threshold
* Default Max Depenetration Velocity
* Sleep Threshold
* Default Contact Offset
* Default Solver Iterations
* Default Solver Velocity Iterations
* Queries Hit Backfaces
* Queries Hit Triggers
* Game Layer Physics Matrix (Any modifications to the core layers in the physics matrix will be overwritten)

## Editing In Code

You can edit physics settings at runtime just like you would in C# by accessing the Physics static object.&#x20;

```
Physics.gravity = new Vector3(0,-9001, 0);
```

To modify the physics matrix in code you can use

```typescript
Physics.IgnoreLayerCollision(17, 18, false);
```

{% hint style="info" %}
You can reset all physics settings to the Airship default settings by using the menu button **Airship->Misc->Reset Physics To Airship Defaults**
{% endhint %}


---

# 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://docs.airship.gg/unity-for-airship/physics-settings.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.
