# gravity

> The gravity applied to all rigid bodies in the Scene.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.PhysicsModule

```csharp
public static Vector3 gravity { get; set; }
```

### Remarks

Gravity can be turned off for an individual rigidbody using its [\_useGravity](/engine/6000.7/script-reference/unityengine/rigidbody/usegravity.md) property.

`ParticleSystem.gravityModifier` is  Obsolete.

### Examples

```csharp
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour
{
    void Example()
    {
        Physics.gravity = new Vector3(0, -1.0F, 0);
    }
}
```
