A real-time Boids simulation powered by NumDot — a tensor math and scientific computation library for the Godot game engine.
NumDot is inspired by the Python library NumPy and leverages xtensor under the hood.
For a comparison between NumPy, xtensor, and NumDot, see this overview.
- Motivation: Why use NumDot?
- How to install
- Getting Started
- Changelog
- Class Reference
- How to contribute
- Boids Demo Documentation (PDF)
The Boids Demo is included as part of the NumDot repository. It demonstrates emergent flocking behavior using both classic Godot logic and efficient, vectorized NumDot operations.
You can interact with the simulation parameters, observe real-time performance differences, and use this demo as a starting point for your own experiments with NumDot.
- Clone the repository (including submodules):
git clone --recurse-submodules https://github.com/Ivorforce/NumDot
- Build and install NumDot
Please refer to the official setup guide for build instructions and requirements. - Open the project in Godot 4.3 and select the Boids Demo scene.