enter image description here

Given this picture, I want to move or displace the red vertex but I don't want it to pass the orange edge boundaries or the blue vertices. I either want to stop the red vertex when it gets close enough or I want to push the edge or vertex I'm closest to by the amount I'm moving. I can imagine this being a performance-heavy task and was wondering if there were any ways to implement this that would be as optimized as possible. I'm doing this through 2D mesh data in Unity.

  • \$\begingroup\$ Is the network of vertices and edges guaranteed to be uniform? As in all vertices being the same distance from each other, and follow the pattern shown in your picture? Or could they be randomly placed as well? \$\endgroup\$
    – TomTsagk
    Nov 17 '21 at 4:10

You must log in to answer this question.

Browse other questions tagged .