A simple soft body simulation Drag the dots to move Press space to add or remove collision cube
All by me https://en.wikipedia.org/wiki/Hooke%27s_law Suggested by @nilstop