# Spring

## Set value nodes

There are multiple nodes that you can use to set properties of a spring joint. For more information refer to the [SpringJoint](https://docs.unity3d.com/ScriptReference/SpringJoint.html) page in the Unity documentation.

The set nodes for an spring joint have a similar arrangement of inputs and outputs, as described in the following sections.

<figure><img src="https://2640392766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5yxYHsXtlAaoMUrDWhLm%2Fuploads%2Fgit-blob-9cfa9fe3d24507dfc07a6b6bd0d1cd8e85d26a9b%2Fafx_node_set_damper.png?alt=media" alt=""><figcaption><p>Example set node for a spring joint - the Set Damper node</p></figcaption></figure>

**Inputs:**

<table><thead><tr><th width="161">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>Enter</td><td>Flow</td><td>Flow to activate the node.</td></tr><tr><td>Input</td><td>SpringJoint</td><td>Reference to a SpringJoint object.</td></tr><tr><td>&#x3C;property></td><td>&#x3C;varies> [editable]</td><td>The value to set for the chosen property.</td></tr></tbody></table>

**Outputs:**

<table><thead><tr><th width="160">Name</th><th width="178">Type</th><th>Description</th></tr></thead><tbody><tr><td>Exit</td><td>Flow</td><td>Continue the activating flow.</td></tr></tbody></table>

**Available nodes:**

<table><thead><tr><th width="179">Name</th><th width="153">Input type</th><th>Description</th></tr></thead><tbody><tr><td>Set Damper</td><td>Float [editable]</td><td>Force used to dampen the spring force.</td></tr><tr><td>Set Max Distance</td><td>Max Distance [editable]</td><td>The maximum distance between the bodies relative to their initial distance.</td></tr><tr><td>Set Min Distance</td><td>Min Distance [editable]</td><td>The minimum distance between the bodies relative to their initial distance.</td></tr><tr><td>Set Spring</td><td>Spring [editable]</td><td>The spring force used to keep the two objects together.</td></tr><tr><td>Set Tolerance</td><td>Tolerance [editable]</td><td>The maximum allowed error between the current spring length and the length defined by minDistance and maxDistance.</td></tr></tbody></table>
