# gszauer/GamePhysicsCookbook

Source code for Game Physics Cookbook

Repository: https://github.com/gszauer/GamePhysicsCookbook
Canonical: https://ross.abutalabs.com/products/gamephysicscookbook
Homepage: http://gamephysicscookbook.com/
Language: C++
License Family: other
Topics: physics, cookbook, intersection, math, particle-physics, game-math, c
Last push: 2020-12-05T17:49:59+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3674, "days_push": 2097, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1078, forks 98 (observed 2026-08-28T04:03:29.841919+00:00)

## What it is
Companion source code for the Game Physics Cookbook, a book teaching linear algebra, 2D/3D collision detection, and basic rigid body physics for games in C++. The code progressively builds a simple physics engine covering particles, rigid bodies, and cloth.

## Use cases
- learn linear algebra for game development
- implement 2D and 3D collision detection between shapes
- build a rigid body physics engine from scratch
- learn intersection testing for rays, spheres, and bounding boxes
- study cloth and spring physics simulation
- reference code for game math primitives like vectors and matrices

## When to choose
- you want to learn game physics and collision detection from first principles
- you need reference implementations of intersection tests between common primitives
- you are following the Game Physics Cookbook book

## When to avoid
- you need a production-ready physics engine for a shipped game
- you need collision resolution features like stacking or joints at scale
- you need an actively maintained or licensed library

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: math, simulation, graphics, game-engine
- domain: simulation, tutorials
- platform: cpp, cross-platform
- tags: collision-detection, linear-algebra, physics-engine, game-physics, book-code, rigid-body, game-development, algorithms

## Member repositories
- gszauer/GamePhysicsCookbook (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:29.841919+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:53:09.050196+00:00, confidence not recorded.
  - readme: https://github.com/gszauer/GamePhysicsCookbook (fetched 2026-08-28T04:03:29.841919+00:00, sha 6b81da463e1b)
  - homepage: http://gamephysicscookbook.com/ (fetched 2026-08-29T12:54:07.591140+00:00, sha 41132815cbdc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
