Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pyranota/zbody
[mirror] Concurrent N-body simulation using Barnes-Hut Algorithm and Zig.
https://github.com/pyranota/zbody
graphics n-body nix raylib raylib-zig simulation zig ziglang
Last synced: about 1 month ago
JSON representation
[mirror] Concurrent N-body simulation using Barnes-Hut Algorithm and Zig.
- Host: GitHub
- URL: https://github.com/pyranota/zbody
- Owner: pyranota
- License: mit
- Created: 2024-10-02T20:06:44.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-07T08:04:28.000Z (3 months ago)
- Last Synced: 2024-12-26T16:42:59.071Z (about 1 month ago)
- Topics: graphics, n-body, nix, raylib, raylib-zig, simulation, zig, ziglang
- Language: Zig
- Homepage: https://codeberg.org/pyranota/Z-body
- Size: 24.7 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Concurrent N-body simulation using Barnes-Hut Algorithm in Zig.
Key Features •
How To Use •
Download •
Credits •
License## Key Features
* Barnes-Hut Algorithm
* Concurrent
* *Faaast*
* Many presets
* Intuitive and smooth controls
* Spawn Astral bodies with just click
* Full screen mode
* Cross platform
- Linux, macOS, Windows and Web## How To Use
To clone and run this application, you'll need [Nix](https://nixos.org/download/) and [Git](https://git-scm.com).
Thats it, no extra stuff required!> **Note**
> You need nix Flakes enabled.> **Warning**
> Running and Installing not working yet, you can build it with nix.
### Run directly
```bash
$ nix run codeberg:pyranota/Z-body
```### Install
```bash
$ nix profile install codeberg:pyranota/Z-body
```### Develop
```bash
# Clone repo
$ git clone https://codeberg.org/pyranota/Z-body# cd into directory
$ cd Z-body# Enter development shell
$ nix develop# Compile and run
$ just```
## Credits
This software uses the following open source packages:
- [Zig](https://ziglang.org/)
- [Raylib](https://www.raylib.com/)
- [Tracy](https://github.com/wolfpld/tracy)
- [Hyperfine](https://github.com/sharkdp/hyperfine)
- [Just](https://just.systems)
- [Nix](https://nixos.org/)## License
MIT