Coding Challenge - Mesh Deform using Agents

I am learning c# and would like to create somethng like this! Any insights !!


First you need an autonomous agent-based system that’s contained within a bounding box together with the mesh. This should cover the theoretical basics:

Once you have that, you simply look for closest mesh vertices for each agent at each moment of time and attract or repulse the closest vertices in relation to their distance to the agent in question. The vertices can either be offset/translated/moved in their (mesh) normal direction or the normalized vector between them and the attractor agent.
Since, there’s a little bit of fall-off going on in your example, you can program in some easing that depends on the distances.