Kick Ninja Physics Simulator

Blender dojo with an articulated dummy leg, a hanging pad and a football.

Switch to 2D

Presets

Playback

The kick

Torque scale for the muscles and the timing of the knee snap.

Target

A hanging training pad or a ball; mass, distance, restitution and contact time.

Camera

Quality

Layers

Model checks

The science

What is modelled

A sports-biomechanics model of a front kick on an inanimate training pad (or a ball on a tee). The kicking leg is two rigid segments in a plane: the thigh (8 kg, 0.44 m) and the shank with foot (4.6 kg, 0.52 m to the toe), each treated as a uniform rod with moment of inertia m l^2 / 12 about its centre. Hip and knee are driven by torque pulses that stand in for the muscles; there is no ragdoll and no body contact.

Equations of motion

With angles a (thigh) and b (shank) from the downward vertical, the Lagrangian gives M11 a'' + M12 b'' + c sin(a-b) b'^2 + G1 = tau_hip - tau_knee and M12 a'' + M22 b'' - c sin(a-b) a'^2 + G2 = tau_knee, with M11 = I1 + m1 l1^2/4 + m2 l1^2, M12 = c cos(a-b), M22 = I2 + m2 l2^2/4, c = m2 l1 l2 / 2. They are integrated with RK4 in steps of 0.5 ms. The kick is a short hip pulse followed, after the chosen delay, by a knee-extension pulse: the classic hip-first, snap-last pattern that lets the shank whip forward.

Torque and angular momentum

About the hip axis the angular momentum of the whole leg is L = (M11 a' + M12 b') + (M12 a' + M22 b') and obeys dL/dt = tau_hip + tau_gravity; the knee torque is internal and cancels. The third graph plots L together with the running integral of the hip plus gravity torque (the angular impulse), and a model check compares them.

Impact impulse and restitution

The toe hits the target in a collision with coefficient of restitution e. At the toe the leg behaves as an effective mass m_eff = 1 / (n^T J M^-1 J^T n) along the contact normal n (J is the toe Jacobian). Momentum conservation and the restitution definition give the impulse J = (1 + e) v_rel / (1/m_eff + 1/m_target), so the target leaves with v = J / m_target (J = m dv) and the leg loses J of momentum along n. Heavy targets slow the toe more; a light ball takes almost (1 + e) v. The average force shown is J divided by the contact time you choose (real pad contacts last roughly 5-20 ms).

Pad swing and the ball

The pad hangs from a rigid 1.5 m hanger as a pendulum; after the hit it swings to cos(theta_max) = 1 - v^2 / (2 g L), which the integration reproduces. The ball flies as a projectile (optional quadratic air drag); without drag the range follows x = v cos(theta) t with t = [v sin(theta) + sqrt(v^2 sin^2(theta) + 2 g y0)] / g.

Simplifications

Planar motion, rigid uniform segments, instantaneous impact, pad as a point mass on a hanger whose face stays vertical, no friction at the foot, hip fixed in space (no body movement or support-leg push). Peak foot speeds here are those of a recreational adult (about 10 m/s); trained athletes reach well above that using whole-body motion that this model leaves out. Educational physics only: the target is an inanimate pad or ball.

What to try
  1. Front snap kick: look at the toe speed graph; the speed peaks just before the leg is straight, which is why the pad sits at 80 cm. Move the pad closer or further and watch J change.
  2. Delay of the knee: set 0 ms (push kick) versus 60 ms (snap). The snap gives a higher toe speed but needs more precise timing.
  3. Heavy bag (80 kg): the pad barely moves, the toe slows more (J is larger, the pad speed J/m smaller).
  4. Light bouncy pad (10 kg, e = 0.8): the pad flies away faster than the toe was moving.
  5. Football on a tee: with drag off the ball follows an exact parabola; switch drag to 1 and watch the range shrink.
Loading Blender model...
Joint angles against time
Toe speed against time
Angular momentum of the leg and angular impulse
Pad swing angle, or ball trajectory
Made with 🟠 Blender · Three.js