Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
Wrote some stuff for the README, but it’s not complete yet.
  • Loading branch information
WhenLifeHandsYouLemons authored Aug 24, 2024
1 parent 09005ba commit e53564c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Boids Flocking Algorithm

## Main Factors

A boid is an object that tries to mimic the mannerisms of a bird (hence the name, boid for bird-oid). Boids are run based on three simple rules: **Coherence**, **Separation**, and **Alignment**. Using just those three rules, we're able to simulate how a flock of birds might fly (or even, how a school of fish might swim).

### Coherence

Coherence is a value determining how grouped together the flock might be. The higher the value, the more bunched up the flock will be. They'll tend to be in one large group instead of multiple smaller groups.

### Separation

Separation determines how much space there is between boids. If the value is low, the boids don't care much about other boids' personal space. If the value is higher, then the personal space of each boid is more respected and boids steer away from getting too close. This doesn't affect the actual personal space for each boid, but it changes the importance of keeping that space.

### Alignment

Alignment is very similar to coherence where boids will want to be clumped together more, but alignment cares more about orientation than grouping. The higher the alignment, the more the boids try to face the same direction.

## Other Factors

We can also implememt other factors that control the boids to make them seem more like birds. Three such factors are: **Enemy boid avoidance**, **Points of interest**, and

0 comments on commit e53564c

Please sign in to comment.