I am using verlet integration to simulate some tentacles. So far it works great and I am satisfied with how it looks in general. Here is how a tentacle is built:
The very stiff sticks are colored red, in addition I added angular constraints of 180° in order to keep everything together.
But still, sometimes this happens:
When forces are too big at the peak, it flips around and gets stuck in a very ugly state.
Of course I could increase the number of iterations for satisfying the constraints, but then the tentacles get too stiff and the performance suffers.
What can I do about this? Some ideas:
- add more points at the peak
- more constraints overall
- limit possible forces
- maybe rethink my tentacle design completely?
- detect flip over and undo it