GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

03A Normal That Picks the Face at a Corner

The overlap depth is measured on both axes and the ball reflects off the face of the shallower one, so a corner graze still bounces off the near face, while the board on the right just flips a velocity sign and goes the wrong way.

Best forA reflection rule that makes corner hits bounce in a natural direction

reflectBricksLAUNCH_DEGface
A Normal That Picks the Face at a Corner
Open in a new tab

03 A Normal That Picks the Face at a Corner — Measured area 11.336% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Brick Breaker Game: 9 Canvas Scenes

The post this demo lives in

Brick Breaker Game: 9 Canvas Scenes - preview of all 9 demosBrick Breaker Game: 9 Canvas ScenesHow does brick breaker turn a hit into a path? 01 sets the angle from paddle offset, 02 splits one frame so no fast ball See all demos in this post

If you like this effect - similar demos