TheCodeYoda / Rphysics

A 2D physics engine written in rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rphysics

A simple two-dimensional Physics Engine written completely in Rust which supports

  • Elastic and Inelastic collisons.
  • Mouse impulse support.
  • Linear and rotational mechanics.
  • gravity and friction simulation.

Usage

0.0 <= Coeffecient of restitiution <= 1.0
rust version 1.47.0 required
Switch to dev branch for latest code

  1. Clone the repo
  2. cd Rphysics/
  3. cargo run [gravity state] [no.of circles] [coeffecient of restitiution]

Example

  • cargo run off 10 1.0

Simulations

Elastic collisons

Elastic Collisons

Mouse Impulse

Mouse Impulse

Gravity

Gravity

About

A 2D physics engine written in rust


Languages

Language:Rust 100.0%