NOTE: Please be sure to read the Let us continue this discussion in chat for background notes
I have seen a few posts on here and tutorials for checking to see if controls overlap but what is the best method for checking this during an animation?
I'm making a simulation software which involves having some UIElements animate along a path. At the moment I have 20 items following this path and it works fine.
To do this I just create a loop of 20 and inside the loop, I am creating the UIElement, storyboard etc and then starting. I wait for about 100ms then repeat. This gives a nice gap between the elements.
Anyway, the above works as it should. Now the next bit. At any point of the sim, a UIElement can stop where it is. Now when this happens, I want the other UIElements to keep going until they hit the stopped element, and 1 by 1 they stack up behind it.
So knowing how to check for overlap/intersection/collision, how do I check during an animation of elements.