Presets
Playback
Parameters
Camera
Layers
Quality
Model check
The science
Flocking as forces. Each antelope feels a spring-like force from every neighbour within R = 14 m: attraction when farther than the preferred spacing r0, repulsion when closer, a = (kc/N)(r - r0). It also relaxes its velocity towards the average velocity of its neighbours at rate alpha (alignment), and its speed towards a walking pace. This is a continuous version of the Reynolds boids rules and of the Cucker-Smale alignment model, not a measurement of real antelope.
What can be solved exactly. For two animals the separation obeys r'' = -2k(r - r0) - 2 alpha r', a damped oscillator with angular frequency sqrt(2k - alpha2). Alignment alone shrinks the velocity difference as e-2 alpha t. Because every pair force and the mean-field alignment are symmetric, the total velocity of an isolated herd is conserved.
The lion. The lion stalks until the nearest antelope is within 38 m, then charges the nearest one at constant speed for a limited endurance. Antelope inside the flee radius (45 m) relax towards the flee speed directly away from it. For a lion straight behind a fleeing animal the catch time is (d - rkill) / (vlion - vantelope); if the antelope is as fast, the lion never catches it, so kills happen only to animals the herd's cohesion has not protected or when the speeds are set close.
Checks. Oscillation period against the closed form, alignment decay against the exponential, momentum conservation to 1e-9 and the straight-chase catch time, all computed with the same step functions that move the animals.
Simplifications. Two dimensions on flat ground, constant gains, no vision cone or blind spots, no individual fitness or stamina for the antelope, one lion that always targets the nearest animal, speeds that are illustrative round numbers (real top speeds are about 80-100 km/h for impala and 50-60 km/h for a lion over short rushes), no vegetation or terrain effects on movement. Dead animals respawn after 25 s so the herd size stays constant.