I’ve tried doing this in TouchDesigner for years and have finally figured it out. In this tutorial, you’ll learn how to create a particle effect that combines all three forces a flocking algorithm requires: attract, repel, and follow.
Other things you might learn in this tutorial:
Optical flow feedback for liquid effects
Rotate To function for 2D particles
Advanced rendering techniques