Skip to content

acrlw/Physics2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Physics2D

中文

Simple 2D Physics Engine For Blog Tutorials.

Attention: For testbed, please see Physics2D-TestBed-SFML .

Build

Use XMake to build project:

xmake build

Requirement

  • C++ 20

Features

  • Basic Linear Algebra
  • Collision Detection
    • Narrowphase
      • Algorithm
        • SAT
        • GJK & EPA & MPR & Distance
        • Contact Pair By Sutherland-Hogdman Clipping
      • Continuous Collision Detection
        • Sampling Trajectory of Body
        • Time of Impact
    • Broadphase
      • Axis-Aligned Bounding Box
      • Dynamic Bounding Volume Tree
        • SAH
        • Dynamic Tree & Array
        • Raycast
      • Sweep And Prune
      • Spatial Hashing Grid
  • Contact Maintainer
  • Rigid Body Dynamics Simulation
  • Sequential Impulse Solver
  • Joint
    • Distance
    • Rotation
    • Point
    • Mouse
  • Simple 2D Geometry Algorithm
    • Support Mapping
      • Ellipse
      • Circle
      • Polygon
      • Line
      • Point
      • Capsule
      • Sector
    • Intersection
      • Raycast
      • Line Segment
    • Convexity
      • Graham Scan
      • Convexity Test
    • Center
      • Incenter
      • Centroid
      • Circumcenter
    • Circle
      • Circumcircle
      • Inscribed-circle
    • Ellipse
      • Support Mapping
      • Nearest Point

Future

  • Integrator
    • Verlet
    • Rk4
  • Joint
    • Prismatic
    • Weld
  • Non-Fit Polygon
  • Soft Body
    • Finite Element Method
    • Mass-Spring System
  • Rope
    • Position-Based Dynamics

Reference