Skip to content

klukasiuk/Phx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phx

This is my high school project involving creating basic 2D physics engine with graphical presentation. Collision resolving is based on impulse method. Drawing is made with my SimpleGL lib.

Screenshot

Features

  • Materials
  • Gravity
  • Friction
  • Resolving collision
  • Basic shapes: circle, convex polygon
  • Complex shapes combined from basic ones (almost working)
  • Distance joints
  • Graphical testbed

Usage

  • Run Visual Studio project and compile it
  • Run exe in build folder
  • Left mouse button adds circles, right adds boxes
  • G key is switching gravity
  • F key is switching friction
  • V key adds ball bridge
  • P key switches debug draw(with visible contact points)