Skip to content

Brumus14/physics-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A 2D physics engine made in Rust.

The project is split into two crates: The engine which is all the actual physics code, and the simulator which is the included graphical front-end.

The engine is designed to have no graphical dependencies so it can be used with whatever you like. It is also made to be very modular and easy to add new parts to the engine.

Here are the currently included features:

  • Rigid bodies that can be convex polygons, circles or a single point.
  • Pre-included effectors: constant force, constant acceleration, gravity, constant torque, springs, drag.
  • The current collision detection uses a circle estimation for the broad-phase, and SAT and circle-circle detection for narrow-phase.
  • Integrators: explicit Euler and semi-implicit Euler.

Try out the demo scenes in the engine to test it out.

2025-09-28-171724_hyprshot 2025-09-28-171845_hyprshot 2025-09-28-171825_hyprshot

About

A 2D physics engine made in Rust

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages