How To Setup a Spring origin!!

Hi all,

So when a spring joint is created on Object A attached to Object B, the distance between the two objects determines how that spring will behave.

I have a situation where Object A might move, but I want it to behave as though the spring was attached at its original position. My problem is that if I disable the gameobject the spring is re-initialized to whatever the current distance between the objects is.

is there some way to access SpringJoint.Origin? That way every time i renable my component or game object I can setup the connected body the same?

Currently I thought about moving the object back, then creating the spring, then returning the object to where it was, but I haven’t been able to get that to work.

Any ideas?

Here’s what i found out- in case anyone is ever curious-

you need to move the objects together, set the spring joint , then move the objects back to the original position in order to control the springs. There is no manner with which to set the origin of a spring at both places =0