# gravityScale

> The degree to which this object is affected by gravity.

## Definition

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

```csharp
public float gravityScale { get; set; }
```

### Remarks

In 2D physics, the gravity is a global setting in the Physics2D class but you can also control the proportion of that gravity applied to each object individually using *gravityScale*. For example, it may be easier to implement a flying character by turning off its gravity rather than simulating the forces that keep it aloft.

Additional Resources: [Physics2D.gravity](/engine/6000.5/script-reference/unityengine/physics2d/gravity.md).
