Overview
Multiball Academy is a native C++ physics simulation and table engine recreating the mechanical feel of classic arcade pinball. High-velocity steel balls striking rotating flipper capsules, slingshots, and helical pop bumpers expose tunneling artifacts immediately in naive frame-stepped solvers.
Technical Highlights
- Swept continuous collision detection (CCD): Analytically solves time-of-impact between moving spheres, static wireform segments, and rotating flipper capsules across sub-frame integration steps.
- Spin & material restitution: Tracks angular momentum transfer and per-surface friction/restitution (rubber rings, Mylar playfield, steel rails) so live catches, drop catches, and post passes emerge naturally from the solver.
- Zero-allocation simulation loop: Deterministic physics core cleanly separated from rendering, low-latency audio mixing, and transient haptics.
// Swept circle vs. rotating flipper capsule sub-step
ImpactResult solveFlipperImpact(
const BallState& ball,
const FlipperKinematics& flipper,
double dt) noexcept;