The Hive - "Ant Simulation" Setup With Collision Detection - Boids In Geonodes

by codesignprojects in Modifier Setups


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.

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)

The file is optimized for and rendered in Eevee (Render Viewport animation). Of course, you can set up any renderer you wish.

----------------------------------------------------------------------

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.

-(Read the description text when you open the file, it has a lot of useful info)

----------------------------------------------------------------------





Sales 10+
Published 12 months ago
Blender Version 4.0, 3.6
License Creative Commons
Have questions before purchasing?

Contact the Creator with your questions right now.

Login to Message