# autoAxis

> When set, local anchor frame A's rotation is recomputed at create so the slide axis is the direction from anchor A to anchor B.

## Definition

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

```csharp
public bool autoAxis { readonly get; set; }
```

### Remarks

It is measured after any [\_autoAnchorA](/engine/6000.7/script-reference/unity/u2d/physics/physicswheeljointdefinition/autoanchora.md)/[\_autoAnchorB](/engine/6000.7/script-reference/unity/u2d/physics/physicswheeljointdefinition/autoanchorb.md) resolution, so it reflects the anchors actually used. It is applied at create only; the authored [\_localAnchorA](/engine/6000.7/script-reference/unity/u2d/physics/physicswheeljointdefinition/localanchora.md) rotation is ignored while this is set. Anchors that coincide in world space (an auto anchor places them together) have no direction, so the world X axis is used.
