Physics2D
Physics2D - Simple 2D Physics Simulation for Blog Tutorials.
Install / Use
/learn @acrlw/Physics2DREADME
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
- Algorithm
- Broadphase
- Axis-Aligned Bounding Box
- Dynamic Bounding Volume Tree
- SAH
- Dynamic Tree & Array
- Raycast
- Sweep And Prune
- Spatial Hashing Grid
- Narrowphase
- 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
- Support Mapping
Future
- Integrator
- Verlet
- Rk4
- Joint
- Prismatic
- Weld
- Non-Fit Polygon
- Soft Body
- Finite Element Method
- Mass-Spring System
- Rope
- Position-Based Dynamics
Reference
- Box2D
- Box2D Lite
- dyn4j
- matterjs
- nphysics
- Box2D Publications
- dyn4j Official Blog
- Game Physics For Beginners - liabru
- Allen Chou's Blog
- Physics Constraints Series - Allen Chou
- Soft Constraints - ODE
- Gaffer's on Games
- Randy Gaul's Blog
- Winter's Dev
- Primitives and Intersection Acceleration
- Real-Time Rendering Intersection
- Inigo Quilez's 2D SDF Functions
- A Simple Time-Corrected Verlet Integration Method - Jonathan Dummer
- Introduction to rigid body pipeline, collision detection - Erwin Coumans
- Foundations of Physically Based Modeling and Animation - Donald House and John C. Keyser
- Real-Time Collision Detection by Christer Ericson
- Game Programming Gems 7 - Scott Jacobs
- Game Physics Cookbook - Gabor Szauer
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
