Hi all 🙂
Thanks to Jahka who told me that he suspected the current harmonic force to act in a similar way to my spring implementation, I have performed some researches and he was indeed right. Just that the harmonic force doesn’t consider a rest length parameter. So I have merged both implementation into one, where the harmonic force now uses the spring force code with rest length and reuses the previous Harmonic velocity damping.
Now everything is ok: if the user sets the rest length of the new harmonic to zero he will get the old harmonic behavior, while if he set its value to any other’s one he will get the new spring force behavior. The new patch is at http://www.pasteall.org/9882/diff
Now it requires even less changes plus it inherits its gizmo 😉