# randomAcceleration

> A random, external acceleration applied to the cloth.

## Definition

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

```csharp
public Vector3 randomAcceleration { get; set; }
```

### Remarks

Use this to simulate randomly changing forces on the cloth, such as wind turbulences waving a flag. Additional Resources: [Cloth.externalAcceleration](/engine/6000.0/script-reference/unityengine/cloth/externalacceleration.md).

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Simulate wind going trough the X axis.
    void Start()
    {
        GetComponent<Cloth>().randomAcceleration = new Vector3(10, 0, 0);
    }
}
```
