Skip to content

JentGent/2D-physics-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D-physics-engine

Sequential impulse constraint solver

Features

  • Circles and convex polygons
  • Friction, restitution
  • Constraints solved on velocity with Baumgarte stabilization and customizable stiffness (see Random right click and drag or Car wheels)
    • "Anchor": set point on body A
    • "Distance": set distance between point on A and point on B
    • "Union": join two bodies together (build complex shapes)
    • "Joint": point on A = point on B
  • Collision layers

Demos

Left click to grab; right click to pull

RIGHT/D to accelerate wheels clockwise LEFT/D to accelerate wheels counter-clockwise UP/W to tilt clockwise DOWN/S to tilt counter-clockwise

About

constraint solver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published