strobosco / boids

Golang implementation of Craig Reynold's Boid Simulation. If you have any suggestions on how the performance or accuracy (pertaining to how real the simulation is) open an issue.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boids Simulation

Recreation of Craig Reynold's boid simulation in Golang.

Attempt at recreating the boids simulation by Craig Reynolds in Golang.

Rules

The three rules that determine the boid's movements are

ALIGNMENT -> boids try to move in the same direction

SEPARATION -> boids try to stay away from each other and not collide

COHESION -> boids try to remain in a compact flock

Directory structure

boids
+-- cmd           // contains the main entry file to run (main.go)
|
+-- pkg
|  |
|  +-- boid       // contains complete boid logic
|  +-- draw       // contains ebiten drawing functions
|  +-- vector     // contains vector math
|  +-- constants  // contains constants

About

Golang implementation of Craig Reynold's Boid Simulation. If you have any suggestions on how the performance or accuracy (pertaining to how real the simulation is) open an issue.


Languages

Language:Go 100.0%