ConfigurableJoint -> phantom springiness: what am I seein

Ok, first up, you might want to check out my question here for a little background:

http://answers.unity3d.com/questions/269/like-a-zero-g-newtons-cradle/275#275

Now, I followed Rune’s advice, but I’m seeing an effect that I can’t account for.

Basically, I don’t set the ball position and anchor in the editor. I set them on Awake() based on an altitude variable. So, I Translate() the ball to it’s prescribed altitude, and then I set joint.anchor so that it is back at the initial world origin where the ball was initially spawned.

What I get for the most part is exactly what I want, except that for the first few seconds, each of the balls exhibit a rebound in their altitude (or distance between joint and anchor) as if the joint had a spring along the up-axis.

I cannot figure out what is causing this. I thought it had to do with the LinearLimit, but changing these variables has no effect.

I discovered it is somehow tied to the mass of the rigidbodies, as I found that reducing the mass to the minimum causes the springiness to be extremely attenuated.

Ultimately, I am trying to figure out how to set the position and anchor through script and NOT experience any resulting springiness in the distance from the joint to its anchor.

Welcome to the forum (even if you have already been to UnityAnswers)!

Have you got the xMotion value (or yMotion, zMotion) set to Limited? I recommend you allow a little bit of linear limit with this joint, even if you don’t want springiness - it seems to help the joint fall to rest much more easily.

Does the LinearLimit variables rely on the xyzMotion variables being set to Limit?

Yes, I’m pretty sure they’re ignored otherwise.