BoinBoin is a Lua Library to handle a mathematically (not physically) accurate bouncing ball(s) inside a closed, rectangular box. This can be used as a base for a variety of games or prototypes. Friction and Gravity-like features are pending.
🔴 Off-limits position that needs correction
🟡 Virtual bouncing point
🔵 Position after the bounce