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

02A Swept Collision That Catches a Fast Ball

One frame of travel is split into steps no larger than the radius and each step checks the bricks, so even a ball fast enough to skip a row stops at the first brick, while the board on the right checks only the end position and passes through.

Best forCollision handling that keeps a ball from passing through bricks as it speeds up

STEP_MAXFRAME_HBALL_SPEED
A Swept Collision That Catches a Fast Ball
Open in a new tab

02 A Swept Collision That Catches a Fast Ball — Measured area 29.834% · moving frames 22/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