# Two questions about Spring Joints

1. Do spring joints push as well as pull? Let’s say I have the minDistance set to 0 and the max set to 10, and the current distance is 0. If I then set the minDistance to 10, will the object be ‘pushed’ to a distance of 10?
2. Is the force applied by the spring variable based on the distance? If maxDistance is set to 10, is the force acting on an object a distance of 20 less than or equal to the force acting on the object if it were at a distance of 40?

A spring joint can be thought of as a line going from the anchor point to the attachment point on the other rigidbody. The distance between the two points is measured and the original distance is subtracted. The difference is then multiplied by the spring force value and the result is the force that is applied in the direction of the spring line. So, if the force value is negative (objects are squeezed together) then the force will push them apart and if it is positive (objects stretched beyond original distance) they are pulled together. The minimum and maximum distances act as hard limits to the spring to prevent the objects getting too close together or too far apart.

Oh. Ok. That clears it up for me. I thought the limits defined a ‘dead zone’ for the spring. Thanks.