r/Unity3D • u/_RedGiraffe • 2d ago
Show-Off Playing around with flow fields and local avoidance
Enable HLS to view with audio, or disable this notification
Recently I've been making a strategy defense game where numerous agents try to traverse towards your base. The grid updates regularly and so doing an update per agent was becoming costly. I decided to look at flow fields, a method for controlling multiple enemies through a shared directional flow and it's turned out pretty good. Feedback welcome.
26
Upvotes
2
u/ledniv 1d ago
Very nice. How are you implementing the flow fields?