Kick Pig Physics (2D)

Side view of a toy-pig kick: impulse, air drag, wind, bounce and roll. Same physics as the 3D field.

Switch to 3D

Presets

Playback

Kick

World, wind and ball

Target and speed

Layers

Model check

The science

What is modelled

A soft toy pig, treated as a rubber-like ball of mass m and radius 12 cm, is kicked from the ground by a foot. It flies through air that pushes back, may be blown by wind, bounces on the grass and finally rolls to a stop. Land on the target mat to score. Nothing here is a person or an animal: the "pig" is a plush toy.

Equations

  • Kick. The foot pushes with a half-sine force pulse F(t) = F sin(pi t / tau). The impulse is J = integral F dt = 2 F tau / pi, so the launch speed is v0 = J / m. A heavier toy leaves slower for the same kick.
  • Flight. m dv/dt = m g - 1/2 rho Cd A |v - w| (v - w) with A = pi r^2 and wind w, integrated with fourth-order Runge-Kutta. In vacuum this is the parabola with range R = v0^2 sin(2a) / g, best at 45 degrees; air drag lowers the best angle and shortens the range.
  • Terminal speed. Falling long enough, weight equals drag: v_t = sqrt(2 m g / (rho Cd A)).
  • Bounce. The normal speed becomes e times its value, so a drop from height h rebounds to e^2 h. The ground also removes tangential speed up to mu (1 + e) v_n (a Coulomb impulse model).
  • Rolling. When the rebound is under 0.35 m/s the toy rolls and slows at mu_r g until it stops.
  • Worlds. Moon: g = 1.62 m/s2, no air. Mars: g = 3.71 m/s2, air about 1.7 % as dense as on Earth (rounded to 0.02 kg/m3).

Checks run in this page

  • Drag-free range against v0^2 sin(2a)/g (within 0.1 %).
  • Terminal speed of a long drop against sqrt(2 m g / (rho Cd A)) (within 0.5 %).
  • Rebound height from a 2 m drop against e^2 h (within 1 %).
  • Numerical integral of the half-sine pulse against 2 F tau / pi.
  • Energy ledger over flight, bounces and rolling: kinetic + potential energy equals the kick energy minus drag work, bounce loss and rolling loss.

Honest simplifications

  • Constant drag coefficient (a real sphere's Cd drops near Re of 3 x 10^5; a plush toy is rough and stays near 0.5).
  • No spin (Magnus) force, no deformation of the toy and a flat, level field.
  • The kick is a point impulse along the launch angle; foot mass and the foot-ball collision are folded into the force pulse.
  • Wind is uniform and constant, with no gusts or height variation.
Trajectory: with air and wind against no air
Speed and height against time
Range against launch angle
Energy: kinetic, potential, total and losses
Made with 🟠 Blender · Three.js