top of page

BEEHIVE SIMULATION USING FLOCKING IN UNITY3D

  • Writer: Shaveen Kumar
    Shaveen Kumar
  • Dec 28, 2013
  • 1 min read

Updated: Apr 25, 2020


This is a customized flocking algorithm. The simulation makes use of various helper functions for rotations and distance calculations in Unity3D. The bees around the beehive follow the patterns of separation from every other bee, alignment based on the direction it has to move and cohesion with the nest. The individual bees are aware of every other bee around them and move at a certain distance from them. When the bee gets too far away from the nest, they navigate towards the nest and when they get too close, a force is applied in the opposite direction so that they do not collide with the center. The force is also randomized to avoid pattern repetitions.


Comments


bottom of page