Skip to content

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.

Notifications You must be signed in to change notification settings

strobosco/boids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Languages