Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 694 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 694 Bytes

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