Giter Club home page Giter Club logo

boids's Introduction

Boids ๐Ÿ•Š

boids is a flocking simulator written in Rust, using the Nannou framework.


flock

Features ๐Ÿค

  • Modeled after Craig Reynold's Boids algorithm, follows three simple steering behaviours
    • Alignment - Steer towards the average direction of local flockmates.
    • Cohesion - Steer towards direction of average position of nearby flockmates.
    • Separation- Steer away from flockmates that are too close to avoid crowding.
  • ๐Ÿฃ Adjustable number of boids, from 100-1000.
  • ๐Ÿฆ… Predator boid that "hunts" the prey boids.
  • ๐Ÿ–ผ๏ธ Themes!

Building / Getting Started โš™๏ธ

Prerequisites

MacOS/Linux

  • To download and run the program, execute the following commands in your terminal.
git clone https://github.com/postfen/boids.git
cd boids
cargo build --release
cd target/release
open .
./boids

Windows

  • To download and run the program, execute the following commands in Powershell.
  • Note - Please let me know if this works. I don't have a Windows machine to test it, currently.
git clone https://github.com/postfen/boids.git
cd boids
cargo build --release
cd target/release
start .
.\boids

To run again, just find the compiled boids executable (default location is boids/target/release), and run the program by double clicking on it.

Controls โŒจ๏ธ

Modifier Keys
Alignment u/i
Cohesion j/k
Separation m/,
Add/Remove Boids Up/Down
Add/Remove Predators Right/Left
Change Theme t
Hide Menu h

boids's People

Contributors

dfendr avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.