Watch the little 2D robots moving around. The applet starts with 17 robots randomly distributed in a 600 by 600 pixel area (infinite plane workspace), with random orientations. They are non-holonomic robots that can only move forward with a limited turning radius (sort of like an automobile). Each robot tries to move toward the midpoint of its two nearest neighbors, except that if it gets too close to any robot, it will move away from the closest one. If a robot is very close to its goal, it will stop, and restart when its goal point moves away. Some people will be fascinated by the patterns this social group makes over time, others less so. Clicking in the applet window will reset the group or start the animation.
This Java source code is for educational purposes only. Viewing or downloading the source implies your acceptance of the restrictions:
I agree to the restrictions and conditions on the source code.