Physics in Games

The Invisible Rules of Reality

1

Gravity: What Goes Up...

Gravity pulls objects down at different rates depending on where you are. Watch how a ball falls on different worlds!

Velocity
0.0
Height
250
Time
0.0s
šŸŽ® Fun Fact

Super Mario Bros uses a gravity of about 75 m/s² - over 7x Earth's gravity! That's why Mario feels so "floaty" on the way up but falls fast.

2

Collision Detection: Hitboxes Revealed

Games need to know when objects touch. Most use invisible boxes (hitboxes) that are simpler than the actual shapes. Toggle hitboxes to see what's really happening!

Collisions
0
Player X
100
Player Y
175
šŸŽÆ Try It!

Use Arrow Keys or WASD to move the character. Try to collide with the other objects and watch the collision counter!

🄊 Fun Fact

Fighting games often have different hitboxes for attacks (hurtboxes) and vulnerability (hitboxes). That's why some moves can hit even when they look like they miss!

3

Friction: Why Ice Levels Are Slippery

Friction is the force that slows things down. Different surfaces have different amounts of friction. Compare how the player slides on different surfaces!

Velocity X
0.0
Friction
0.85
Stopping Dist
--
šŸŽ® Controls

Press Left/Right Arrow or A/D to move. Notice how the character slides differently on each surface!

ā„ļø Fun Fact

Ice levels in Mario games use friction values around 0.98 (almost no friction!). Normal ground uses about 0.85. That small difference completely changes how the game feels!

4

Momentum: Pool Ball Physics

Momentum is mass times velocity. When objects collide, momentum transfers between them. Click and drag to shoot the white ball and watch physics in action!

Total Momentum
0.0
Collisions
0
Balls Moving
0
šŸŽ± How to Play

Click and drag on the white cue ball to aim. The longer you drag, the harder you shoot. Release to strike!

šŸŽ± Fun Fact

In a perfect elastic collision, momentum is conserved - the total before equals the total after. Real pool balls lose some energy to heat and sound, which is why they eventually stop.

5

Physics Sandbox

Now put it all together! Adjust gravity, bounce, and friction to create your own physics world. Click to spawn balls and watch them interact!

9.81
0.80
0.99
Balls
0
Total Energy
0
Bounces
0
šŸŽØ Click to Create

Click anywhere in the sandbox to spawn a ball. Try different physics settings to see how they change the behavior!

Physics Master!

You've discovered the invisible rules that make games feel real.

0
Collisions
0
Balls Spawned
0
Time Exploring

Gravity

Accelerates objects downward - different planets have different gravity

Hitboxes

Simplified shapes that make collision detection fast

Friction

Controls how quickly objects slow down on different surfaces

Momentum

Transfers between objects when they collide

Game Feel

Designers tune these values to create the perfect experience

Ready to Create?

Put your new knowledge into practice!

Suggest a Correction