- #1
- 959
- 0
I've been writing a simple program to simulate what is essentially a bunch of springs connected together at nodes. However, I'm having trouble.
Currently I just calculate instantaneous force for every spring/node, step ahead a fixed amount, and repeat. The problem is this tends to overestimate and I end up with a the whole system gaining a ton of energy unless I dampen the springs by a large factor.
What is the next step up for this type of thing?
Currently I just calculate instantaneous force for every spring/node, step ahead a fixed amount, and repeat. The problem is this tends to overestimate and I end up with a the whole system gaining a ton of energy unless I dampen the springs by a large factor.
What is the next step up for this type of thing?