Skip to content

tmarble/pyboids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pyboids

This is a port of Peter Keller's sample boids program to python3.

For the original Common Lisp version of boids, check out: Boids Flocking Model

NOTE: This port was taken from an earlier, unpublished snapshot of the Common Lisp version and is now somewhat out of date.

Background (from Peter Keller)

This is a naive boids implementation derived from this paper:

http://www.cs.toronto.edu/~dt/siggraph97-course/cwr87/

The boids exist in a 3D cube which is a hypertorus. However, the neighborhood equations in the vector math does not take that geometry into consideration. Visually, the error is negligible.

The various nasty constants found in the method implementations of the correction protocol are mostly due to not completing the physics all the way to dealing with boid mass and volume and for visual effect of what I thought looked nice.

Dependencies

Running

To try it out yourself, clone this and run:

./boids.py

Contributors

  • pkeller
  • tmarble

License

This project is licensed under the permissive MIT license

About

Python3 implementation of boids

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages