# 2D Physics Basics: Velocity, Gravity & Bounce > Simulate realistic arcs, friction, and elastic bounces with just two variables: x_vel and y_vel. 2D Physics Basics: Velocity, Gravity & Bounce — 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](/en/techniques/): Browse more English guides in this section. - [Scratch Block Dictionary](/en/dictionary/): Look up any Scratch 3.0 block with examples. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/techniques/physics-intro/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)