All examples · Physics · As Markdown, for AIs

Breakout, retro

What this example shows

A whole breakout on retro bodies, and nothing in it does its own collisions. The paddle is 'kinematic': the game drives it by its velocity and nothing pushes it back. The ball is 'dynamic' with bounce: 1 and gravityScale: 0, so it comes off everything as fast as it arrived and never falls. The bricks are 'static', and the ball's onEnter is what breaks them.

The ball is a circle, so it comes off a brick's corner at an angle, the way it should. Left and right to move.

Starting
Starting
—