# Distance

[Common Attributes](https://mainframe-north.gitbook.io/cavalry/-LU1VVdL61zw4e2kW3m1/~/drafts/-LVhJZczSYlal0cX5yaf/primary/elements/behaviours/common-attributes-behaviours) +

**Target** - connect a shape to measure from.

**Offset** - add/subtract a value to the output(s).

{% hint style="info" %}
Example usage:

1. Create two [Basic Shapes](https://scenegroup.gitbook.io/cavalry/nodes/shapes/basic-shape)
2. Create a **Distance**.
3. Connect ***basicShape1*** > ***distance.target**.*
4. Connect ***distance.id*** > ***basicShape2.rotation**.*
5. Move Basic Shape 1

The distance between the shapes drives the Basic Shape 2's rotation.
{% endhint %}
