An open API service indexing awesome lists of open source software.

https://github.com/televisionninja/flocking-simulation

Flocking simulation with boids rendered using p5.js
https://github.com/televisionninja/flocking-simulation

ai boids flocking octree p5js simulation

Last synced: 11 months ago
JSON representation

Flocking simulation with boids rendered using p5.js

Awesome Lists containing this project

README

          

# Flocking-Simulation
Flocking simulation with boids rendered using p5.js

This implementation uses boids and octrees.

### 3D Environment
![screenshot3d](./images/screenshot3d.png)

![octree3d](./images/octree3d.png)

### 2D Environment
![screenshot2d](./images/screenshot2d.png)

![octree2d](./images/octree2d.png)

Controls:

click and drag mouse: look around

W: move forwards

A: move left

S: move backwards

D: move right

space: move up

shift: move down