This project use Unity 20202.3.12f (https://unity3d.com/get-unity/download/archive)
Secens from the demo.
/Assets/Scenes/Demo/FlowFeid-CSAgent 1.unity
/Assets/Scenes/Demo/FlowFeid-CSAgent.unity
/Assets/Scripts/
-
CS_Agent.cs
The main base class for the agents using Context Streeing. -
CS_Agent_FlowFeild.cs
The Constext Streeing agents that read the direction to move in from the flow feild -
FlowFeild.cs
The flow feild generator that use Dijkstra shortest path algorithm
See the comments at the top of each script to get a overview how it all works.