Answer the question
In order to leave comments, you need to log in
How to track collisions of SVG objects?
The task when dragging an SVG object is to track its collision with another object and do something. If, for example, there are only 2 objects, then it would be possible to use standard tools like getBoundingClientRect () and catch a collision during the OnDrag event. But what if there are many elements? Maybe there are some ready-made libraries for such purposes?
Answer the question
In order to leave comments, you need to log in
https://greensock.com/draggable - check it out. I haven't used it myself, but it fits the description. + Knowledgeable people advised me this in some cases.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question