I'm using a port of Box2d (Farseer Physics) for a game that relies heavily on springs. For springs I use DistanceJoint with frequency and damping set.
The problem is I want the springs to pull right from the start. Therefore I reset their length after creation to something like this: distanceJoint.Length *= 0.9 . This works good, except for one thing; the longer the spring, the harder it will pull. 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?
Anyway, the most important question is, how can I fix this? I want the spring to pull with a certain force, despite their lengths. Is this possible?
All help is highly appreciated 🙂
The problem is I want the springs to pull right from the start. Therefore I reset their length after creation to something like this: distanceJoint.Length *= 0.9 . This works good, except for one thing; the longer the spring, the harder it will pull. 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?
Anyway, the most important question is, how can I fix this? I want the spring to pull with a certain force, despite their lengths. Is this possible?
All help is highly appreciated 🙂