Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exigow/flocking-boids
Optimized Flocking/Boids 2D simulation written in Scala with libGDX
https://github.com/exigow/flocking-boids
Last synced: about 2 months ago
JSON representation
Optimized Flocking/Boids 2D simulation written in Scala with libGDX
- Host: GitHub
- URL: https://github.com/exigow/flocking-boids
- Owner: exigow
- Created: 2016-05-24T17:09:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-24T18:12:30.000Z (over 8 years ago)
- Last Synced: 2024-10-13T08:13:13.556Z (3 months ago)
- Language: Scala
- Homepage:
- Size: 5.02 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Flocking/Boids Demo
====================================================(a Distributed Behavioral Model simulation)
-------------------------------------------![Image with boids with shape of black arrows and steer vectors on white background.]
(https://raw.githubusercontent.com/exigow/flocking-boids/master/screenshots/preview-on-white-background.png)An implementation of Craig Reynold's Boids program ([papers] (http://www.red3d.com/cwr/boids/)) to simulate the flocking
behavior of birds in two dimensional space. Each boid steers itself based on rules of __avoidance__, __alignment__, and
__coherence__.Fully written in **Scala** language.
Rendered with libGDX
------------
This library was used to show window and render simulation. This can be easily replaced with some other framework.Optimization
------------The neighbors detection and vector calculations are build on top of **2d grid spatial partitioning** algorithm.
Everything works very **fast**.