A self-contained Ant Simulation Geometry Nodes setup with collision detection. Essentially a boid system in Geometry Nodes. Here Ants are instanced on the system, you can use your own custom object.
Video demo here - https://www.instagram.com/reel/CrGNUeEACmW
The setup essentially is a customizable number of points, moved and turned into random directions (with adjustable degree of randomness). With collision detection, they are able to avoid obstacles and move on indefinitely. On these points any object can be instanced, here the chosen theme was Ants.
In addition to the main blend, the setup essentially contains the following steps too, for easy readability
Move instances in random direction (Example 1)
Turn direction with adjustable and random degree and probability (Example 2)
Add collision detection (Example 3)
Instance the ants (or your own object) ! (The main file)
NOTE
-(Since it is a concept demonstration, it is kept as simple as possible.) The GeoNodes trees are kept clean, the nodes are not contracted into node groups for easier readability and have detailed explanations. You can embellish, refine as you wish.
-(The files are working in the Simulation Nodes branch. (Link included. Simply download that Blender and open the setup in it. It is completely the same as 3.5, except 2 additional nodes available.) The reason for this is, that, since the effect is essentially a simulation, it is simpler to use in the Simulation Nodes branch, where you dont need tricks to store the state of the simulation, like in the current official version. SimNodes will be included there soon anyway)
-(Read the description text when you open the file, it has a lot of useful info)