Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        




ZBody logo

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