# useGravity

> Should gravity affect the cloth simulation?

## Definition

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

```csharp
public bool useGravity { get; set; }
```

### Examples

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

public class ExampleClass : MonoBehaviour
{
    void Example()
    {
        // Dont use gravity on this cloth regardless if is Interactive or Skinned.
        transform.GetComponent<Cloth>().useGravity = false;
    }
}
```
