Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lemunozm/torophy
2D physics engine over a toroidal space
https://github.com/lemunozm/torophy
game-engine physics physics-2d physics-engine physics-simulation simulation simulation-environment simulator toroidal
Last synced: 2 months ago
JSON representation
2D physics engine over a toroidal space
- Host: GitHub
- URL: https://github.com/lemunozm/torophy
- Owner: lemunozm
- License: apache-2.0
- Created: 2020-05-24T16:40:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-29T10:58:05.000Z (almost 2 years ago)
- Last Synced: 2024-04-25T05:40:10.872Z (8 months ago)
- Topics: game-engine, physics, physics-2d, physics-engine, physics-simulation, simulation, simulation-environment, simulator, toroidal
- Language: Rust
- Homepage:
- Size: 83 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![torophy](https://img.shields.io/crates/v/torophy)](https://crates.io/crates/torophy)
[![license](https://img.shields.io/crates/l/torophy)](https://www.apache.org/licenses/LICENSE-2.0.txt)
[![downloads](https://img.shields.io/crates/d/torophy)](https://crates.io/crates/torophy)# `torophy`
2D physics engine over a toroidal space.
The aim of this project is to test and experiment with physics over a toroidal space.## Features
- Toroidal space physics.
- Particle physics.
- Rigid body collision (circles).
- Fast: focus in to make the collisions as fast as possible.
- Easy to use: Simple API to make your own experiments really easy and fast.## Examples
You can see more examples in the `examples` folder.
## Test it!
### Install from cargo repositories
It is necessary to have `rust` language installed (you can install from [rustup.rs](https://rustup.rs/))```sh
cargo install torophy --examples
```if you have `~/.cargo/bin` in PATH you only need to run the example by its name.
### From sources
```sh
git clone https://github.com/lemunozm/torophy.git
cargo run --example basic --release
```## Getting started
Add to your `Cargo.toml`
```sh
torophy = "0.1"
```You can change `basic` name for any other example name found in the `examples` folder.
## Contribute!
Any help is welcome!
If you have any awesome idea for a new experiment or feature, please, create an issue or a pull request.