Skip to content

[mirror] Concurrent N-body simulation using Barnes-Hut Algorithm and Zig.

License

Notifications You must be signed in to change notification settings

pyranota/z-body

Repository files navigation


ZBody logo

Concurrent N-body simulation using Barnes-Hut Algorithm in Zig.

Key FeaturesHow To UseDownloadCreditsLicense

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 and Git. 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

$ nix run codeberg:pyranota/Z-body

Install

$ nix profile install codeberg:pyranota/Z-body

Develop

# 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:

License

MIT