erincatto/box2d
Box2D is a 2D physics engine for games observed · 2026-08-28
Health v2 · maintenance only
74/100
- Activity 99
- Release rhythm 28
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 44
- age_days: 4190
- days_rel: 456
- days_push: 7
- n_releases_24m: 2
Adoption not part of the score
10303 stars · 1804 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Box2D is a widely used open-source 2D rigid body physics engine for games, written in portable C17 with a data-oriented design, multithreading, and SIMD support. It provides collision detection, joints, motors, springs, ray casts, and spatial queries for making game objects move realistically.
Use cases
- simulate 2d rigid body physics in a game
- add realistic collision detection to a 2d game
- implement joints motors and springs between game objects
- perform ray casts and overlap queries in a 2d world
- build a physics sandbox or physics puzzle game
- add procedural animation driven by physics to a game engine
When to choose
- you need a battle-tested 2D physics engine with continuous collision detection
- you want a portable C library with multithreading and SIMD performance
- you are building a 2D game with many dynamic bodies and need island-based sleeping
- you need collision queries and a dynamic tree for spatial sorting
When to avoid
- you need 3D physics simulation (use Box3D or another 3D engine)
- you want a high-level engine-integrated physics solution with visual editors
- you are not comfortable compiling and linking C code yourself
Facets
library · maturity stable
simulation graphics game-engine math simulation graphics cross-platform cpp c cross-platform windows game-engine physics-engine rigid-body-simulation collision-detection 2d-games c17 multithreading simd game-development linux macos
6 sources
- readme: https://github.com/erincatto/box2d · fetched 2026-08-28 · b0438b472ff3
- homepage: https://box2d.org · fetched 2026-08-29 · c11e332f0106
- site_page: https://box2d.org/about · fetched 2026-08-29 · 490da859b17e
- site_page: https://box2d.org/documentation · fetched 2026-08-29 · 89e27a64c1ea
- site_page: https://box2d.org/documentation3d · fetched 2026-08-29 · ed4bf1d107a8
- site_page: https://box2d.org/doc_version_2_4 · fetched 2026-08-29 · 161a23c6ded6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| erincatto/box2d | main | 74 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem