3D Marble Run: Rolling on Rails, the Loop and the Cup

A toy marble run with a vertical loop: rolling inertia, rail forces, the minimum start height and flight into a cup, in a Blender-built toy room.

Switch to 2D

Presets

Playback

Parameters

Camera

Layers

Quality

Model check

The science

What is modelled

A glass marble is released at the top of a toy marble run: a straight ramp, a smooth curve into a flat section, a full vertical loop, a short flat and an exit ramp that throws the marble towards a catch cup. The marble rolls on two rails, so the way it turns is slightly different from a ball rolling on a plane. The rails, sleepers and supports are generated from the same path that the physics uses, so the picture shows exactly the track being simulated; the marbles, hopper, cup, base board and room are Blender-built models.

Equations

  • A marble of radius r on rails with gap w touches the rails at distance w/2 from its centre line, so it rolls about a circle of radius ρ = √(r² − (w/2)²). Its inertia factor is K = I/(mρ²) = (2/5) r²/ρ² (0.4 on a plane, larger on narrow-contact rails).
  • Along the track: d²s/dt² = (−g sinθ − friction) / (1 + K), where θ is the slope angle. Friction is rolling resistance Crr N/m plus air drag ½ ρair Cd A v²/m (Cd = 0.47). The mass drops out without friction and drag.
  • Rail reaction: N = m (v² κ + g cosθ) with κ the signed path curvature. In the loop the marble stays on the rails while N ≥ 0; at the top this means v² ≥ g R. Without losses, energy conservation m g H = 2 m g R + ½(1 + K) m v² gives the minimum start height Hmin = R (2.5 + K/2).
  • If N becomes negative the marble leaves the rails and flies as a projectile with drag; at the end of the track it also flies on a parabola into (or past) the cup.

Checks run in the page

  • Energy conservation: loop-bottom speed against sqrt(2gH/(1+K)).
  • The simulated minimum loop height (bisection on full runs) against R(2.5+K/2).
  • Rolling down the ramp: time for 0.5 m against sqrt(2s/a) with a = g sinθ/(1+K).

Honest simplifications

The track is planar: the real loop shifts sideways by a few centimetres so the marble does not hit the entry rails, but the physics ignores that small lateral slope. The marble is held on the rails laterally without any rattle, rolling resistance is a single coefficient, there is no slipping, no marble-to-marble contact (several marbles run independently), and the cup is treated as a circle with no rim bounce. Spin-off from the rails at the top of the loop is the simple N < 0 test, not a contact simulation.

What to try

  • Choose the Start too low for the loop preset and watch the marble drop away from the top; then raise the start height until the green dot in the right graph is above the yellow line.
  • Try the Steel ball preset: the heavier ball follows almost the same path, because the mass cancels.
  • Narrow or wide rails change K and so the speed.
  • Set rolling resistance high: the marble may not even reach the end.
Loading model...
Loading Blender model...
Speed along the track
Rail force / weight along the track
Minimum start height vs loop radius
Made with 🟠 Blender · Three.js