I also wrote some samples using the impulse-based approach
Simple: Boingy
More advanced, with rotation and better solver Boingy2
The second one is a little messy still because I’ve been busy with other projects and haven’t cleaned it up, but it should still be helpful