I can imagine you can probably achieve something similar that in a more direct way, without using springs or a solver like DynaShap.
But if you want to try DynaShape, then yes you can simulate virtual springs using the LengthGoal
To achieve something similar to that screenshot, You can treat the anchor points as vertices in DynaShape. Then create the following goals for the DynaShape solver.
- For every node, create an Anchor goal that tries to keep them in the original positions. The weight for the Anchor goals associated with the attractor point must be very high compared to other anchor goals
- For every vertex, create Length goals that link them to each attractor points. The targetLength might be set to half of the original length (i.e. the distance between the vertex and the attractor)
- Run the solver and hopefully you will see the length goals pull the vertices toward the attractor points, while the anchor goals will try to slightly pull them back to original positions (without the anchor goals, all the vertices will likely to move too much and becomes chaotic.