# gravity

> Get/Set the gravity vector applied to all bodies in the world, usually in m/s^2.

## Definition

* **Type:** Property
* **Namespace:** [Unity.U2D.Physics](/engine/6000.5/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public Vector2 gravity { get; set; }
```
