{
  "id": "gravitygradient",
  "title": "Gravity-Gradient Attitude Lab",
  "category": "Astronomy",
  "slug": "gravity-gradient-attitude-lab",
  "subtitle": "Gravity-gradient alignment torques on an orbiting spacecraft",
  "description": "An elongated craft in orbit experiences a torque because gravity varies across its body.",
  "params": [
    {
      "id": "altitude",
      "label": "Orbit altitude",
      "min": 350,
      "max": 1800,
      "step": 50,
      "value": 600,
      "unit": "km"
    },
    {
      "id": "inertia",
      "label": "Principal inertia difference",
      "min": 100,
      "max": 2000,
      "step": 50,
      "value": 850,
      "unit": "kg·m²"
    },
    {
      "id": "tilt",
      "label": "Attitude error angle",
      "min": 5,
      "max": 80,
      "step": 5,
      "value": 35,
      "unit": "°"
    },
    {
      "id": "orbit",
      "label": "Orbit playback speed",
      "min": 0.2,
      "max": 2,
      "step": 0.1,
      "value": 0.8,
      "unit": "×"
    }
  ],
  "output": "Torque magnitude",
  "outputUnit": "mN·m",
  "formula": "τ = 3μ ΔI sin(2θ) / (2r³)",
  "notes": "Earth spherical gravity parameter μ, r=Earth radius+altitude, simplified principal-axis model.",
  "seed": "5022635941305479809",
  "batchSeed": "2674396715534941479",
  "difficulty": "GCSE–undergraduate",
  "language": "en-GB",
  "technology": "offline WebGL2 ES modules",
  "integration": {
    "urlPath": "/astronomy/gravity-gradient-attitude-lab/",
    "entry": "index.html",
    "assets": [
      "assets/apparatus.glb"
    ],
    "seoDescription": "An elongated craft in orbit experiences a torque because gravity varies across its body.",
    "keywords": [
      "Astronomy",
      "gravitygradient",
      "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"
  }
}
