Please tell me how to realize the attraction and breaking of bodies.
example
https://playcanvas.com/project/632955/overview/my_first_prodject
Topics that I considered, but can someone have a more elegant solution?
1
2
3
4
5
https://phet.colorado.edu/sims/html/atomic-interactions/latest/atomic-interactions_en.html
variant attraction and breaking of bodies