This project has moved and is read-only. For the latest updates, please go here.

About string pull force

Sep 8, 2010 at 8:32 PM

When I make a spring (DistanceJoint), I make it pulled out from the start, using spring.Length *= LengthFactor, where LengthFactor is somewhere between 1 and 0.5. This works ok, but I notice that when the initial length of the spring is longer, it will pull harder. Maybe this is normal, but I find it somewhat counter-intuitive, because it's always pulled out the same amount relative to it's length. So why should a long spring pull harder than a short spring, they're both pulled out the same percentage of their length?

But the more important question is, how do I make them pull with the same force, despite their length (which varies)?

All help is very much appreciated!

Sep 9, 2010 at 9:07 AM

The DistanceJoint is part of the Box2D package. I've only refactored the joint to make it easier to use the joint - You should try asking on the Box2D forums.

Sep 9, 2010 at 9:20 AM

Ok, I will. Thanks.