Skip to content
All projects
Engines & Simulation · WIP

Impulse

C# | physics engine | collision detection

Impulse

A rigid-body physics engine I am writing from scratch in C# to understand real-time simulation from first principles. Narrow-phase collision detection uses GJK on the Minkowski difference for convex shapes; contacts are resolved with an impulse-based solver.

Highlights

  • GJK narrow-phase collision detection for convex shapes.
  • Impulse-based solver for contact response, stable under stacking and resting contact.
  • Debug gizmos for contact points, normals and impulses, drawn live in the Unity scene view.
  • A learning project focused on building an engine from first principles.

Screenshots

Box stack and spheres with contact gizmos
Solver demo: boxes tumbling and coming to rest
Contact points and normals between stacked boxes

More in Engines & Simulation