# rotateWithStretchDirection

> Rotate the particles based on the direction they are stretched in. This is added on top of other particle rotation.

## Definition

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

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

### Remarks

This property only has effect when [\_freeformStretching](/engine/6000.7/script-reference/unityengine/particlesystemrenderer/freeformstretching.md) is enabled. When [\_freeformStretching](/engine/6000.7/script-reference/unityengine/particlesystemrenderer/freeformstretching.md) is disabled, particles are always rotated based on the direction they are stretched in, even if [\_rotateWithStretchDirection](/engine/6000.7/script-reference/unityengine/particlesystemrenderer/rotatewithstretchdirection.md) is false.
