Skip to content
/ foids Public

An interactive javascript implementation of Boids using three.js

Notifications You must be signed in to change notification settings

tunneln/foids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foids

Foids, or 'fish-oid objects', is an interactive javascript implementation of Craig Reynold's Boids algorithm.

Foids simulates the schooling behavior of fish using Reynold's algorithm and the threejs graphics library.

Algorithm

The intereaction of individual agents, or fish, adheres to 3 primary rules:

  • Cohesion: steer to move toward the average position of local fish schools
  • Alignment: steer towards the average heading of local fish schools
  • Separation: steer to avoid crowding local flock mates

These rules collectively simulate the complexity of swarm intelligence often seen in animals. Additional rules, such as, mouse obstacle avoidance and goal seeking were also implemented.

The working demo can be found here

About

An interactive javascript implementation of Boids using three.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages