This project has two bouncing dvd-logo-style rectangles with random widths, heights, and velocities. The catch is that a rectangle will shrink if it gets hit on a specific side of the other rectangle. (I'm trying to recreate this: https://www.reddit.com/r/maybemaybemaybe/comments/1ii6tv6/maybe_maybe_maybe/) I've been trying to make the bounce between the rectangles work for days and can't figure out the equations. I've tried all sorts of different methods of reversing the velocities and moving the rectangles away from each other but I can't figure out the correct solution. You can view the code here Any help would be wonderful! image of project Continue reading...