{"job_id":"anim-job-8690a7f8-6719-4f23-88db-94f0a4ad6d4d","request_id":"test-physics-circular-ba30c5e5-e5bb-4ff3-90a7-a40b2e480a51-1778708287067","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-8690a7f8-6719-4f23-88db-94f0a4ad6d4d/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-8690a7f8-6719-4f23-88db-94f0a4ad6d4d/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-8690a7f8-6719-4f23-88db-94f0a4ad6d4d/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-8690a7f8-6719-4f23-88db-94f0a4ad6d4d/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-8690a7f8-6719-4f23-88db-94f0a4ad6d4d/scene-source.json","duration_seconds":15,"byte_size":479710,"renderer":"html_three_js_local","parameters":{"style":"auto","executor":"native_render_executor","localPath":"/app/storage/assets/anim-job-8690a7f8-6719-4f23-88db-94f0a4ad6d4d","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-8690a7f8-6719-4f23-88db-94f0a4ad6d4d","request":{"gap":{"topic":"centripetal-vs-centrifugal","severity":"dangerous","error_type":"wrong_assumption","memory_state":"fragile","display_topic":"Centripetal Force in Circular Motion","common_wrong_answer":"An object in circular motion has centrifugal force pushing it outward.","confidence_at_error":"high","correct_understanding":"Centripetal force always points inward toward the center; centrifugal is a pseudo-force in the rotating frame only."},"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":"Laws of Motion","ncert_class":11,"ncert_chapter_number":5},"sub_topics":[{"topic":"Circular Motion","key_concepts":["centripetal acceleration","centripetal force","uniform circular motion"]}]},"metadata":{"priority":"normal"},"exam_type":"neet","asset_type":"simulation","request_id":"test-physics-circular-ba30c5e5-e5bb-4ff3-90a7-a40b2e480a51-1778708287067","subject_area":"physics"},"renderer":"html_three_js_local","storyboard":{"beats":[{"label":"Topic","visual":"Show the topic title and the key physical context.","narration":"Centripetal Force in Circular Motion"},{"label":"Mistake","visual":"Show the wrong approach and why it seems plausible.","narration":"An object in circular motion has centrifugal force pushing it outward."},{"label":"Correction","visual":"Show the right approach step by step.","narration":"Centripetal force always points inward toward the center; centrifugal is a pseudo-force in the rotating frame only."},{"label":"Concept","visual":"Highlight the key formula and the governing relationship.","narration":"centripetal acceleration. centripetal force. uniform circular motion"}],"title":"Centripetal Force in Circular Motion","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>Centripetal Force: Inward, Not Outward</title>\n  <style>\n    :root{--bg:#0f1418;--panel:#182228;--line:#2e3e46;--accent:#e5ba67;--text:#f4f1ea;--muted:#c8d4da;--blue:#63b3ff;--green:#87e8a8;--red:#de7f76;}\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%,#24343d 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(31,46,53,.86),rgba(24,34,40,.92));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>Centripetal Force</h1>\n    <p class=\"sub\">Inward, not outward. See why the misconception is wrong.</p>\n    <p class=\"formula\">F_c = m·v²/r (always toward center)</p>\n    <label class=\"control\"><span>Velocity: <strong id=\"v-velocity\">5.0</strong> m/s</span><input id=\"c-velocity\" type=\"range\" min=\"2\" max=\"10\" step=\"0.5\" value=\"5.0\"/></label>\n    <label class=\"control\"><span>Radius: <strong id=\"v-radius\">80</strong> px</span><input id=\"c-radius\" type=\"range\" min=\"40\" max=\"140\" step=\"10\" value=\"80\"/></label>\n    <label class=\"control\"><span>Show Mistake: <strong id=\"v-mistake\">OFF</strong></span><input id=\"c-mistake\" type=\"range\" min=\"0\" max=\"1\" step=\"1\" value=\"0\"/></label>\n    <ul>\n      <li><strong>✗ Misconception:</strong> Centrifugal force pushes outward</li>\n      <li><strong>✓ Reality:</strong> Only centripetal force acts (inward)</li>\n      <li><strong>Key:</strong> Pseudo-forces only exist in rotating frames</li>\n      <li><strong>Proof:</strong> Tangential velocity + inward force = circular path</li>\n    </ul>\n  </aside>\n  <section>\n    <div class=\"stage\" id=\"stage\">\n      <div class=\"legend\" id=\"legend\">t = 0.0 s</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\":\"velocity\",\"label\":\"Velocity\",\"min\":2,\"max\":10,\"step\":0.5,\"value\":5.0,\"units\":\"m/s\"},{\"key\":\"radius\",\"label\":\"Radius\",\"min\":40,\"max\":140,\"step\":10,\"value\":80,\"units\":\"px\"},{\"key\":\"mistake\",\"label\":\"Show Mistake\",\"min\":0,\"max\":1,\"step\":1,\"value\":0,\"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',()=>{\n    if(c.key==='mistake'){out.textContent=inp.value==='1'?'ON':'OFF';}\n    else{out.textContent=inp.value;}\n    window.updateModel?.();\n  });\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  let t=0;\n  let angle=0;\n  let trailPoints=[];\n  const maxTrail=120;\n  \n  function glowDot(x,y,r,color,a){\n    const g=ctx.createRadialGradient(x,y,0,x,y,r*2.6);\n    const rgba=color.replace('ALPHA',String(a));\n    g.addColorStop(0,rgba);\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){\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=10;\n    ctx.strokeStyle=color;ctx.lineWidth=2.5;\n    ctx.beginPath();ctx.moveTo(x1,y1);ctx.lineTo(x2,y2);ctx.stroke();\n    ctx.fillStyle=color;ctx.beginPath();\n    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);\n    ctx.fill();\n  }\n  \n  function tick(ts){\n    const dt=Math.min(0.04,(ts-lastTs)/1000);lastTs=ts;\n    t+=dt;\n    const W=cv.width,H=cv.height;\n    \n    // Read sliders\n    const velocity=Number(document.getElementById('c-velocity').value);\n    const radiusPx=Number(document.getElementById('c-radius').value);\n    const showMistake=Number(document.getElementById('c-mistake').value)===1;\n    \n    // Angular velocity: v = omega * r\n    const omega=velocity/radiusPx;\n    angle+=omega*dt;\n    \n    // Center of circle\n    const cx=W*0.35;\n    const cy=H*0.5;\n    \n    // Current position\n    const px=cx+radiusPx*Math.cos(angle);\n    const py=cy+radiusPx*Math.sin(angle);\n    \n    // Velocity vector (tangent)\n    const vx=-velocity*Math.sin(angle);\n    const vy=velocity*Math.cos(angle);\n    const vScale=15;\n    \n    // Centripetal acceleration (toward center)\n    const accelMag=velocity*velocity/radiusPx;\n    const ax=-(accelMag/10)*Math.cos(angle);\n    const ay=-(accelMag/10)*Math.sin(angle);\n    const aScale=12;\n    \n    // Trail\n    trailPoints.push({x:px,y:py});\n    if(trailPoints.length>maxTrail)trailPoints.shift();\n    \n    // Clear\n    ctx.fillStyle='rgba(15,20,24,0.95)';\n    ctx.fillRect(0,0,W,H);\n    ctx.fillStyle='rgba(47,74,87,0.08)';\n    ctx.fillRect(0,0,W,H);\n    \n    // Grid lines (subtle)\n    ctx.strokeStyle='rgba(68,90,98,0.15)';\n    ctx.lineWidth=1;\n    for(let i=0;i<W;i+=80){\n      ctx.beginPath();ctx.moveTo(i,0);ctx.lineTo(i,H);ctx.stroke();\n    }\n    for(let i=0;i<H;i+=80){\n      ctx.beginPath();ctx.moveTo(0,i);ctx.lineTo(W,i);ctx.stroke();\n    }\n    \n    // === LAYER 1: Track circle ===\n    ctx.strokeStyle='rgba(131,165,178,0.3)';\n    ctx.lineWidth=1.5;\n    ctx.beginPath();ctx.arc(cx,cy,radiusPx,0,Math.PI*2);ctx.stroke();\n    \n    // === LAYER 2: Trail ===\n    if(trailPoints.length>1){\n      ctx.strokeStyle='rgba(99,179,255,0.25)';\n      ctx.lineWidth=1.8;\n      ctx.beginPath();ctx.moveTo(trailPoints[0].x,trailPoints[0].y);\n      for(let i=1;i<trailPoints.length;i++){\n        ctx.lineTo(trailPoints[i].x,trailPoints[i].y);\n      }\n      ctx.stroke();\n    }\n    \n    // === LAYER 3: Center marker ===\n    ctx.fillStyle='rgba(229,186,103,0.4)';\n    ctx.beginPath();ctx.arc(cx,cy,3,0,Math.PI*2);ctx.fill();\n    ctx.strokeStyle='rgba(229,186,103,0.6)';\n    ctx.lineWidth=1;\n    ctx.beginPath();ctx.arc(cx,cy,radiusPx,0,Math.PI*2);ctx.stroke();\n    \n    // === LAYER 4: Orbiting mass ===\n    glowDot(px,py,7,'rgba(99,179,255,ALPHA)',0.5);\n    ctx.fillStyle='#63b3ff';\n    ctx.beginPath();ctx.arc(px,py,6,0,Math.PI*2);ctx.fill();\n    \n    // === LAYER 5: Vectors ===\n    const vlabel=Math.round(velocity*10)/10;\n    const alabel=Math.round(accelMag*10)/10;\n    \n    // Velocity vector (tangent, green)\n    arrow(px,py,px+vx*vScale,py+vy*vScale,'#87e8a8');\n    ctx.fillStyle='#87e8a8';\n    ctx.font=Math.round(H*0.035)+'px sans-serif';\n    ctx.fillText('v='+vlabel+' m/s',px+vx*vScale+10,py+vy*vScale-5);\n    \n    // Centripetal force (inward, blue – correct)\n    const fcPx=px+ax*aScale;\n    const fcPy=py+ay*aScale;\n    arrow(px,py,fcPx,fcPy,'#63b3ff');\n    ctx.fillStyle='#63b3ff';\n    ctx.font=Math.round(H*0.035)+'px sans-serif';\n    ctx.fillText('F_c (correct)',px+ax*aScale-40,py+ay*aScale+20);\n    \n    // === LAYER 6: Misconception overlay ===\n    if(showMistake){\n      // Red \"wrong\" force pointing outward\n      const mistakeFx=-ax*aScale*1.3;\n      const mistakeFy=-ay*aScale*1.3;\n      arrow(px,py,px+mistakeFx,py+mistakeFy,'#de7f76');\n      \n      ctx.fillStyle='rgba(222,127,118,0.9)';\n      ctx.font='bold '+Math.round(H*0.036)+'px sans-serif';\n      ctx.fillText('✗ \"centrifugal\"',px+mistakeFx-50,py+mistakeFy+25);\n      \n      // Annotation box\n      ctx.fillStyle='rgba(222,127,118,0.15)';\n      ctx.strokeStyle='rgba(222,127,118,0.5)';\n      ctx.lineWidth=2;\n      ctx.beginPath();\n      ctx.rect(W*0.55,H*0.1,W*0.4,H*0.35);\n      ctx.fill();ctx.stroke();\n      \n      ctx.fillStyle='#de7f76';\n      ctx.font=Math.round(H*0.033)+'px sans-serif';\n      ctx.fillText('❌ Why this is wrong:',W*0.58,H*0.15);\n      ctx.fillStyle='rgba(212,107,98,0.85)';\n      ctx.font=Math.round(H*0.027)+'px sans-serif';\n      let y=H*0.22;\n      ctx.fillText('• Centrifugal only in',W*0.58,y); y+=H*0.05;\n      ctx.fillText('  rotating frame',W*0.58,y); y+=H*0.05;\n      ctx.fillText('• In inertial frame:',W*0.58,y); y+=H*0.05;\n      ctx.fillText('  only real forces act',W*0.58,y); y+=H*0.05;\n      ctx.fillText('• Object would fly',W*0.58,y); y+=H*0.05;\n      ctx.fillText('  off if outward force',W*0.58,y); y+=H*0.05;\n      ctx.fillText('  was real!',W*0.58,y);\n    }else{\n      // Annotation box – correct\n      ctx.fillStyle='rgba(135,232,168,0.15)';\n      ctx.strokeStyle='rgba(135,232,168,0.5)';\n      ctx.lineWidth=2;","remediationGoal":"Close wrong_assumption for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-13T21:42:00.421Z","cache_hit":false,"cost_usd":0},"error":null}