NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

2D Physics Basics: Velocity, Gravity & Bounce

📌 What you will learn

Simulate realistic arcs, friction, and elastic bounces with just two variables: x_vel and y_vel.

Core approach

Each frame: update velocity (add gravity, multiply friction), then update position (change x by x_vel, change y by y_vel).

  • Bounce off floor: set y_vel to (y_vel * -0.75) for realistic energy loss.
  • Bounce off walls: set x_vel to (x_vel * -1).
  • Stop micro-jitter when |y_vel| < 0.5 on the floor.

Pro tip & next steps

Velocity-based physics makes every jump, throw, and bounce feel alive.

All Techniques Browse more English guides in this section. Learn more → Scratch Block Dictionary Look up any Scratch 3.0 block with examples. Learn more →

FAQ

What is the best first step for "2D Physics Basics: Velocity, Gravity & Bounce"?

Bounce off floor: set y_vel to (y_vel * -0.75) for realistic energy loss. Velocity-based physics makes every jump, throw, and bounce feel alive.

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.