{
  "id": "boids",
  "title": "Flock Collective Navigation",
  "category": "Biology",
  "slug": "flock-collective-navigation",
  "subtitle": "Live 3D flocking with separation, alignment and cohesion",
  "description": "Local motion rules can produce emergent collective movement, even without a flock leader.",
  "params": [
    {
      "id": "agents",
      "label": "Number of organisms",
      "min": 20,
      "max": 100,
      "step": 5,
      "value": 60,
      "unit": ""
    },
    {
      "id": "range",
      "label": "Perception radius",
      "min": 0.7,
      "max": 2.4,
      "step": 0.1,
      "value": 1.5,
      "unit": "m"
    },
    {
      "id": "volume",
      "label": "Habitat cube side",
      "min": 8,
      "max": 15,
      "step": 1,
      "value": 11,
      "unit": "m"
    },
    {
      "id": "speed",
      "label": "Cruise speed",
      "min": 0.3,
      "max": 2.5,
      "step": 0.1,
      "value": 1.2,
      "unit": "m/s"
    },
    {
      "id": "cohesion",
      "label": "Cohesion strength",
      "min": 0.1,
      "max": 3,
      "step": 0.1,
      "value": 1.2,
      "unit": "×"
    }
  ],
  "output": "Expected neighbour count",
  "outputUnit": "individuals",
  "formula": "E = (N−1) · (4πr³/3) / L³",
  "notes": "Uniform spatial baseline neglecting edge effects, used to compare with a nonuniform live flock.",
  "seed": "13515504160082628277",
  "batchSeed": "2674396715534941479",
  "difficulty": "GCSE–undergraduate",
  "language": "en-GB",
  "technology": "offline WebGL2 ES modules",
  "integration": {
    "urlPath": "/biology/flock-collective-navigation/",
    "entry": "index.html",
    "assets": [
      "assets/apparatus.glb"
    ],
    "seoDescription": "Local motion rules can produce emergent collective movement, even without a flock leader.",
    "keywords": [
      "Biology",
      "boids",
      "3D",
      "interactive",
      "virtual lab"
    ]
  },
  "challengeGenerator": {
    "total": 10,
    "numeric": 6,
    "multipleChoice": 4,
    "seed": "cryptographically random session + original 64-bit lab seed",
    "grading": "formula-derived answers, 2.5% relative tolerance with 0.015 absolute floor; -1 exact for unreachable routes",
    "hints": true,
    "explanations": true,
    "regenerate": true
  },
  "features": {
    "webgl2": true,
    "webgl2ShaderLighting": true,
    "procedural3D": true,
    "localGLB": true,
    "orbitZoom": true,
    "touchAndKeyboard": true,
    "drag3DProbe": true,
    "liveCalculatedReadout": true,
    "parameterResponseGraph": true,
    "pausePlaySpeedReset": true,
    "csvExport": true,
    "screenshot": true
  },
  "assetGeneration": {
    "source": "trimesh Python procedural modeling",
    "nativeThreeR160": false,
    "authoredInBlender": false,
    "assetFile": "assets/apparatus.glb",
    "format": "binary glTF 2.0"
  }
}
