Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zojize/taichi-flocking
flocking simulation in taichi
https://github.com/zojize/taichi-flocking
Last synced: about 2 months ago
JSON representation
flocking simulation in taichi
- Host: GitHub
- URL: https://github.com/zojize/taichi-flocking
- Owner: zojize
- License: mit
- Created: 2021-09-29T02:40:41.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-10T11:51:06.000Z (about 3 years ago)
- Last Synced: 2024-08-24T02:02:02.412Z (4 months ago)
- Language: Python
- Size: 11.1 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-taichi - Taichi flocking - A simple flocking behavior simulation implemented in Taichi. (Applications / **Simulation**)
README
# Flocking Behavior
## Background
A simple flocking behavior simulation implemented in Taichi. Heavily inspired by [this tutorial](https://www.youtube.com/watch?v=mhjuuHl6qHM).
## Demo
- 50 Boids
![50_boids_as_triangles](data/50_boids_as_triangles.gif)
- 5000 boids
![5000_boids](./data/5000_boids.gif)
## 运行方式
```bash
python3 main.py
```## TODOS
- [x] Brute force implementation
- [x] OOP
- [ ] Quadtree optimization