Gravity & Friction

Free fall, projectiles, universal gravitation and friction: how things fall, fly, slide and orbit.

Textbook modelSimplified game model
Free Fall and Gravitational Acceleration
y = h − ½gt²  t = √(2h ÷ g)
vy += g·dt; vy = min(vy, maxFallSpeed)
Projectile Motion
x = v₀cos θ·t  y = v₀sin θ·t − ½gt²
Euler method with a coarse step (e.g. dt = 1/15 s)
Law of Universal Gravitation
F = G m₁m₂ ÷ r²
Forward Euler: update position and velocity from the old values
Friction (Static and Kinetic)
Static friction ≤ μₛN  kinetic friction = μₖN
v ← v × (1 − friction); no static friction

Physics Laws Quiz All laws

Sources

Checked: 2026-11-29