dev-physics-lesson

Couple a header-only physics library with an SDL GPU demo for physics lessons.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill dev-physics-lesson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dev-physics-lesson
Source: https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317/tree/main/.claude/skills/dev-physics-lesson
Command: npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill dev-physics-lesson

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add a physics lesson that combines a robust, reusable physics library with a live demo, enabling learners to explore particle dynamics, rigid bodies, collisions, and constraints rendered in real time with SDL GPU.

Core Features & Use Cases

  • Library-first design: introduces common/physics/forge_physics.h as the central, tested API for physics concepts.
  • Live demos: provides a runnable SDL GPU-based demonstration that visualizes the physics concepts in action.
  • Validation & testing: mandates unit tests under tests/physics to ensure correctness, determinism, and numerical stability.
  • Cross-references: integrates with related math and GPU lessons to reinforce theory and rendering.

Quick Start

Compile and run the physics lesson to see particle dynamics and collisions in action.

Frequently Asked Questions about dev-physics-lesson

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a physics simulation with rigid body dynamics and collision detection?

To build a physics simulation with rigid body dynamics and collision detection, use a header-only library API that provides deterministic integration and a fixed-timestep simulator. It couples reusable physics logic with live visual rendering to demonstrate particle dynamics and constraints.

Does SDL GPU work for visualizing real-time physics lessons and rigid body collisions?

Yes, SDL GPU works for visualizing real-time physics lessons and rigid body collisions by serving as the render pipeline for the demonstration program. It renders the simulated particle dynamics and physical constraints in real time alongside the underlying physics engine.

What is a library-first approach for implementing deterministic physics integration?

A library-first approach for implementing deterministic physics integration exposes a central, tested header file API for physics concepts rather than embedding logic directly in application code. This ensures numerical stability, comprehensive testing, and reusability across standalone lessons.

How do I test collision detection and numerical stability in a physics engine?

To test collision detection and numerical stability in a physics engine, run unit tests that validate the deterministic integration and fixed-timestep simulator. This ensures the physics library maintains correctness across particle dynamics, rigid bodies, and constraint calculations.

Can I use this physics framework for teaching particle dynamics and constraints across standalone lessons?

Yes, you can use this physics framework for teaching particle dynamics and constraints across standalone lessons. It provides a reusable, safety-focused design with cross-references to related math and GPU lessons to reinforce underlying theory and rendering techniques.