{"job_id":"anim-job-2972295b-5d52-4447-9741-890ee74f920a","request_id":"bulk-2026-05-20T10-21-44-856Z-21-physics.11.rotational-motion.torque-moment-arm","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-2972295b-5d52-4447-9741-890ee74f920a/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-2972295b-5d52-4447-9741-890ee74f920a/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-2972295b-5d52-4447-9741-890ee74f920a/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-2972295b-5d52-4447-9741-890ee74f920a/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-2972295b-5d52-4447-9741-890ee74f920a/scene-source.json","duration_seconds":15,"byte_size":470912,"renderer":"html_three_js_local","parameters":{"style":"auto","executor":"native_render_executor","localPath":"/app/storage/assets/anim-job-2972295b-5d52-4447-9741-890ee74f920a","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-2972295b-5d52-4447-9741-890ee74f920a","request":{"gap":{"topic":"rotational_motion-torque_moment_arm","severity":"moderate","error_type":"concept_misunderstanding","memory_state":"fragile","display_topic":"Torque & Moment Arm","common_wrong_answer":"The concept works the same way in all conditions.","confidence_at_error":"high","correct_understanding":"The concept depends on constraints, assumptions, and variable relationships."},"target":{"style":"auto","render":{"fps":30,"format":"mp4","resolution":"1920x1080","include_thumbnail":true,"include_transcript":true},"audience":{"tone":"neutral_instructional","grade":"11","language":"en"},"interactivity":"none","duration_seconds":15},"context":{"chapter":{"name":"Rotational Motion","ncert_class":11},"sub_topics":[{"topic":"rotational_motion-torque_moment_arm","key_concepts":["Torque & Moment Arm","Rotational Motion"]}]},"metadata":{"priority":"normal","trace_id":"bulk-run-2026-05-20T10-21-44-856Z"},"exam_type":"neet","asset_type":"simulation","request_id":"bulk-2026-05-20T10-21-44-856Z-21-physics.11.rotational-motion.torque-moment-arm","subject_area":"physics"},"renderer":"html_three_js_local","storyboard":{"beats":[{"label":"Topic","visual":"Show the topic title and the key physical context.","narration":"Torque & Moment Arm"},{"label":"Mistake","visual":"Show the wrong approach and why it seems plausible.","narration":"The concept works the same way in all conditions."},{"label":"Correction","visual":"Show the right approach step by step.","narration":"The concept depends on constraints, assumptions, and variable relationships."},{"label":"Concept","visual":"Highlight the key formula and the governing relationship.","narration":"Torque & Moment Arm. Rotational Motion"}],"title":"Torque & Moment Arm","sceneCode":"<!doctype html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"utf-8\"/>\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n  <title>Torque & Moment Arm: Context Matters</title>\n  <style>\n    :root{--bg:#0e121a;--panel:#1c232e;--line:#303449;--accent:#fc884f;--text:#faf9f8;--muted:#9f9ea1;--blue:#627da5;--green:#8decb0;--red:#df8279;}\n    *{box-sizing:border-box;}\n    body{margin:0;font-family:\"Plus Jakarta Sans\",\"Manrope\",\"Inter\",ui-sans-serif,system-ui,sans-serif;background:radial-gradient(120% 90% at 20% -5%,#1c232e 0%,var(--bg) 55%);color:var(--text);}\n    main{min-height:100vh;display:grid;grid-template-columns:minmax(300px,380px) 1fr;}\n    aside{border-right:1px solid var(--line);background:linear-gradient(180deg,rgba(28,35,46,.86),rgba(14,18,26,.94));padding:24px;overflow:auto;backdrop-filter:blur(6px);}\n    section{padding:24px;display:grid;place-items:center;}\n    h1{margin:0 0 10px;font-size:1.65rem;line-height:1.15;}\n    .sub{margin:0 0 16px;color:var(--muted);}\n    .formula{margin:0 0 14px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#11191e;color:var(--accent);font-family:ui-monospace,monospace;font-size:0.9rem;box-shadow:inset 0 0 28px rgba(229,186,103,.08);}\n    .control{display:grid;gap:6px;margin:12px 0;}\n    .control input{width:100%;accent-color:var(--accent);}\n    ul{margin:14px 0 0 18px;padding:0;color:var(--muted);display:grid;gap:6px;}\n    .stage{width:min(1020px,95%);aspect-ratio:16/9;border:1px solid #445862;border-radius:14px;position:relative;overflow:hidden;background:radial-gradient(circle at 50% 38%,#2f4a57,#0f1418 72%);box-shadow:0 18px 60px rgba(0,0,0,.45), inset 0 0 90px rgba(255,255,255,.03);}\n    .stage::before{content:\"\";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.06),transparent 34%);pointer-events:none;}\n    .legend{position:absolute;right:12px;top:12px;padding:8px 10px;border-radius:10px;border:1px solid #465a64;background:rgba(9,14,18,.58);font-size:0.8rem;color:var(--muted);backdrop-filter:blur(4px);}\n    @media(max-width:900px){main{grid-template-columns:1fr;}aside{border-right:0;border-bottom:1px solid var(--line);}}\n  </style>\n</head>\n<body>\n<main>\n  <aside>\n    <h1>Torque & Moment Arm</h1>\n    <p class=\"sub\">Why the same force produces different rotation</p>\n    <p class=\"formula\">τ = r⊥ × F</p>\n    <label class=\"control\"><span>Force (N): <strong id=\"v-force\">15</strong></span><input id=\"c-force\" type=\"range\" min=\"5\" max=\"30\" step=\"1\" value=\"15\"/></label>\n    <label class=\"control\"><span>Moment Arm (m): <strong id=\"v-arm\">0.8</strong></span><input id=\"c-arm\" type=\"range\" min=\"0.2\" max=\"1.2\" step=\"0.1\" value=\"0.8\"/></label>\n    <label class=\"control\"><span>Apply Angle: <strong id=\"v-angle\">90</strong>°</span><input id=\"c-angle\" type=\"range\" min=\"0\" max=\"180\" step=\"5\" value=\"90\"/></label>\n    <ul>\n      <li><strong>❌ Misconception:</strong> Torque depends only on force—angle and distance don't matter.</li>\n      <li><strong>✓ Reality:</strong> Torque = r⊥ × F × sin(θ). Both moment arm AND force direction matter.</li>\n      <li><strong>🔑 Key:</strong> Push perpendicular to the lever arm for maximum torque. Pushing along the arm creates zero torque.</li>\n    </ul>\n  </aside>\n  <section>\n    <div class=\"stage\" id=\"stage\">\n      <div class=\"legend\" id=\"legend\">τ = 0 N·m</div>\n      <canvas id=\"sim-cv\" style=\"position:absolute;inset:0;width:100%;height:100%;\"></canvas>\n    </div>\n  </section>\n</main>\n<script>\nconst controls = [{\"key\":\"force\",\"label\":\"Force\",\"min\":5,\"max\":30,\"step\":1,\"value\":15,\"units\":\"N\"},{\"key\":\"arm\",\"label\":\"Moment Arm\",\"min\":0.2,\"max\":1.2,\"step\":0.1,\"value\":0.8,\"units\":\"m\"},{\"key\":\"angle\",\"label\":\"Apply Angle\",\"min\":0,\"max\":180,\"step\":5,\"value\":90,\"units\":\"°\"}];\nfor(const c of controls){\n  const inp=document.getElementById('c-'+c.key);\n  const out=document.getElementById('v-'+c.key);\n  inp?.addEventListener('input',()=>{out.textContent=inp.value;window.updateModel?.();});\n}\n(function(){\n  const cv=document.getElementById('sim-cv');\n  const ctx=cv.getContext('2d');\n  function resize(){const r=cv.getBoundingClientRect();if(r.width>0){cv.width=r.width;cv.height=r.height;}}\n  resize();new ResizeObserver(resize).observe(cv);\n  let lastTs=0;\n  \n  // State: rotational angle of the wrench/lever\n  let rotation = 0;\n  let targetRotation = 0;\n  const trail = [];\n  const maxTrailLen = 60;\n  \n  function glowDot(x,y,r,color,a){\n    const g=ctx.createRadialGradient(x,y,0,x,y,r*2.6);\n    g.addColorStop(0,color.replace('ALPHA',String(a)));\n    g.addColorStop(1,color.replace('ALPHA','0'));\n    ctx.fillStyle=g;ctx.beginPath();ctx.arc(x,y,r*2.6,0,Math.PI*2);ctx.fill();\n  }\n  \n  function arrow(x1,y1,x2,y2,color,thick){\n    const dx=x2-x1,dy=y2-y1,l=Math.sqrt(dx*dx+dy*dy);\n    if(l<2)return;\n    const nx=dx/l,ny=dy/l,s=thick||12;\n    ctx.strokeStyle=color;\n    ctx.lineWidth=thick?3:2;\n    ctx.beginPath();ctx.moveTo(x1,y1);ctx.lineTo(x2,y2);ctx.stroke();\n    ctx.fillStyle=color;ctx.beginPath();ctx.moveTo(x2,y2);\n    ctx.lineTo(x2-s*nx+s*0.4*ny,y2-s*ny-s*0.4*nx);\n    ctx.lineTo(x2-s*nx-s*0.4*ny,y2-s*ny+s*0.4*nx);ctx.fill();\n  }\n  \n  function tick(ts){\n    const dt=Math.min(0.04,(ts-lastTs)/1000);lastTs=ts;\n    const W=cv.width,H=cv.height;\n    \n    // Read sliders\n    const forceN = Number(document.getElementById('c-force').value);\n    const armM = Number(document.getElementById('c-arm').value);\n    const angleApply = Number(document.getElementById('c-angle').value);\n    \n    // Physics: torque = r_perp * F * sin(angle)\n    const anglRad = angleApply * Math.PI / 180;\n    const perpArm = armM * Math.sin(anglRad); // perpendicular component of moment arm\n    const torque = perpArm * forceN;\n    \n    // Angular acceleration proportional to torque\n    const angularAccel = torque * 0.3; // scale for visual effect\n    \n    // Smooth rotation update\n    targetRotation += angularAccel * dt * 60;\n    rotation += (targetRotation - rotation) * 0.15; // damping\n    \n    // Store trail point\n    const leverEndX = W*0.4 + armM * 80 * Math.cos(rotation);\n    const leverEndY = H*0.5 + armM * 80 * Math.sin(rotation);\n    trail.push({x: leverEndX, y: leverEndY});\n    if(trail.length > maxTrailLen) trail.shift();\n    \n    // Clear canvas\n    ctx.clearRect(0,0,W,H);\n    \n    // ===== BACKGROUND LAYER =====\n    ctx.fillStyle='rgba(30,50,60,0.15)';ctx.fillRect(0,0,W,H);\n    \n    // ===== MAIN ACTION LAYER =====\n    const pivotX = W*0.4;\n    const pivotY = H*0.5;\n    \n    // Draw pivot point\n    glowDot(pivotX, pivotY, 8, 'rgba(252,136,79,ALPHA)', 0.8);\n    ctx.fillStyle='#fc884f';ctx.beginPath();ctx.arc(pivotX,pivotY,6,0,Math.PI*2);ctx.fill();\n    \n    // Draw lever/wrench\n    const leverEndX = pivotX + armM * 80 * Math.cos(rotation);\n    const leverEndY = pivotY + armM * 80 * Math.sin(rotation);\n    \n    ctx.strokeStyle='#8decb0';ctx.lineWidth=8;ctx.lineCap='round';\n    ctx.beginPath();ctx.moveTo(pivotX,pivotY);ctx.lineTo(leverEndX,leverEndY);ctx.stroke();\n    \n    // Draw end of lever\n    ctx.fillStyle='#8decb0';ctx.beginPath();ctx.arc(leverEndX,leverEndY,5,0,Math.PI*2);ctx.fill();\n    \n    // Draw trail (visual feedback of rotation)\n    if(trail.length>1){\n      ctx.strokeStyle='rgba(141,236,176,0.4)';ctx.lineWidth=2;\n      ctx.beginPath();ctx.moveTo(trail[0].x,trail[0].y);\n      for(let i=1;i<trail.length;i++){\n        ctx.lineTo(trail[i].x,trail[i].y);\n      }\n      ctx.stroke();\n    }\n    \n    // Draw force vector (at lever end, applied force)\n    const forceVecLen = forceN * 4;\n    const forceAngle = rotation + angleApply * Math.PI / 180 - Math.PI/2;\n    const forceX = leverEndX + forceVecLen * Math.cos(forceAngle);\n    const forceY = leverEndY + forceVecLen * Math.sin(forceAngle);\n    arrow(leverEndX, leverEndY, forceX, forceY, '#fc884f', 3);\n    \n    // Draw moment arm indicator (perpendicular from pivot to force line)\n    // Only if angle is not 0 or 180\n    if(Math.sin(anglRad) > 0.05){\n      const perpDist = perpArm * 80;\n      const perpEndX = pivotX + perpDist * Math.cos(rotation + Math.PI/2);\n      const perpEndY = pivotY + perpDist * Math.sin(rotation + Math.PI/2);\n      \n      ctx.strokeStyle='rgba(98,125,165,0.6)';ctx.lineWidth=1.5;ctx.setLineDash([4,4]);\n      ctx.beginPath();ctx.moveTo(pivotX,pivotY);ctx.lineTo(perpEndX,perpEndY);ctx.stroke();\n      ctx.setLineDash([]);\n      \n      // Label moment arm\n      const midX = (pivotX + perpEndX)*0.5;\n      const midY = (pivotY + perpEndY)*0.5;\n      ctx.fillStyle='#627da5';\n      ctx.font=Math.round(H*0.035)+'px sans-serif';\n      ctx.textAlign='center';\n      ctx.fillText('r⊥', midX-12, midY);\n    }\n    \n    // ===== FOREGROUND ANNOTATIONS =====\n    const topPad = 20;\n    \n    // Title\n    ctx.fillStyle='#faf9f8';\n    ctx.font='bold '+Math.round(H*0.055)+'px sans-serif';\n    ctx.textAlign='left';\n    ctx.fillText('Torque Depends on BOTH Force & Angle', 20, topPad+30);\n    \n    // Misconception callout\n    ctx.fillStyle='rgba(223,130,121,0.9)';\n    ctx.fillRect(20, topPad+50, W*0.28, H*0.12);\n    ctx.fillStyle='#faf9f8';\n    ctx.font=Math.round(H*0.032)+'px sans-serif';\n    ctx.textAlign='left';\n    ctx.fillText('❌ Misconception:', 28, topPad+65);\n    ctx.font=Math.round(H*0.026)+'px sans-serif';\n    ctx.fillText('Force alone determines', 28, topPad+82);\n    ctx.fillText('rotation.', 28, topPad+100);\n    \n    // Correction callout\n    ctx.fillStyle='rgba(141,236,176,0.9)';\n    ctx.fillRect(W*0.32, topPad+50, W*0.28, H*0.12);\n    ctx.fillStyle='#0e121a';\n    ctx.font=Math.round(H*0.032)+'px sans-serif';\n    ctx.textAlign='left';\n    ctx.fillText('✓ Reality:', W*0.32+8, topPad+65);\n    ctx.font=Math.round(H*0.026)+'px sans-serif';\n    ctx.fillText('τ = r⊥ × F', W*0.32+8, topPad+82);\n    ctx.fillText('Angle matters!', W*0.32+8, topPad+100);\n    \n    // Calculation readout\n    ctx.fillStyle='rgba(48,52,73,0.85)';\n    ctx.fillRect(W*0.64, topPad+50, W*0.34, H*0.12);\n    ctx.fillStyle='#fc884f';\n    ctx.font='bold '+Math.round(H*0.035)+'px sans-serif';\n    ctx.textAlign='left';\n    ctx.fillText('τ = '+torque.toFixed(1)+' N·m', W*0.64+12, topPad+70);\n    ctx.fillStyle='#9f9ea1';\n    ctx.font=Math.round(H*0.026)+'px sans-serif';\n    ctx.fillText('r⊥='+","remediationGoal":"Close concept_misunderstanding for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-20T11:54:29.632Z","cache_hit":false,"cost_usd":0},"error":null}