The Hive - Randomized Motion Instancing With Collision Detection - Boids in GeoNodes
Why aren't my instances avoiding the collision object?
Ensure the collision object is correctly assigned in the THE COLLISION OBJECT frame. Additionally, the raycast distance is currently set to 50; if your scene scale is massive, you may need to increase the Ray Length in the Raycast node. Finally, simulation setups require playback from Frame 0 to calculate correctly.
Can I make them move only on a specific surface, like the ground?
This current setup is a generalized 2D random walk (Z-axis is ignored in the rotation alignment). To bind them to a specific undulating terrain, you would need to add an additional Raycast node aimed downwards (Z = -1) to constantly update their Z-position based on the ground geometry.
Discover more products like this
collision random walk boids in geometry nodes collision detection collsion avoidance geometry nodes interactive particles ant colony avoid collision ant simulation hive simulation