{"job_id":"anim-job-3be3af5a-b300-485f-b15e-fb4594c69a85","request_id":"test-physics-circular-fef4a9a4-ee3c-4109-9b59-ca80c158fc36-1778702709883","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-3be3af5a-b300-485f-b15e-fb4594c69a85/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-3be3af5a-b300-485f-b15e-fb4594c69a85/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-3be3af5a-b300-485f-b15e-fb4594c69a85/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-3be3af5a-b300-485f-b15e-fb4594c69a85/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-3be3af5a-b300-485f-b15e-fb4594c69a85/scene-source.json","duration_seconds":15,"byte_size":267111,"renderer":"html_three_js_local","parameters":{"style":"auto","executor":"native_render_executor","localPath":"/app/storage/assets/anim-job-3be3af5a-b300-485f-b15e-fb4594c69a85","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-3be3af5a-b300-485f-b15e-fb4594c69a85","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-fef4a9a4-ee3c-4109-9b59-ca80c158fc36-1778702709883","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 vs Centrifugal Force</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\",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\">Why centrifugal force is NOT real (except in a rotating frame)</p>\n    <p class=\"formula\">F_c = m·v²/r (always inward)</p>\n    <label class=\"control\"><span>Velocity: <strong id=\"v-vel\">8</strong> m/s</span><input id=\"c-vel\" type=\"range\" min=\"2\" max=\"15\" step=\"0.5\" value=\"8\"/></label>\n    <label class=\"control\"><span>Radius: <strong id=\"v-rad\">60</strong> px</span><input id=\"c-rad\" type=\"range\" min=\"30\" max=\"120\" step=\"5\" value=\"60\"/></label>\n    <label class=\"control\"><span>Show Frame: <strong id=\"v-frame\">Inertial</strong></span><input id=\"c-frame\" type=\"range\" min=\"0\" max=\"1\" step=\"1\" value=\"0\"/></label>\n    <ul>\n      <li>✗ <strong>Mistake:</strong> Centrifugal force pushes the object outward</li>\n      <li>✓ <strong>Truth:</strong> Centripetal force pulls inward (Newton's 2nd law)</li>\n      <li>Toggle \"Show Frame\" to see rotating perspective vs inertial frame</li>\n      <li>In the <strong>inertial frame</strong>, only centripetal (inward) force is real</li>\n      <li>In a <strong>rotating frame</strong>, you feel pseudo-force outward — but it's not real in the lab!</li>\n    </ul>\n  </aside>\n  <section>\n    <div class=\"stage\" id=\"stage\">\n      <div class=\"legend\" id=\"legend\">Inertial Frame</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\":\"vel\",\"label\":\"Velocity\",\"min\":2,\"max\":15,\"step\":0.5,\"value\":8,\"units\":\"m/s\"},{\"key\":\"rad\",\"label\":\"Radius\",\"min\":30,\"max\":120,\"step\":5,\"value\":60,\"units\":\"px\"},{\"key\":\"frame\",\"label\":\"Show Frame\",\"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==='frame')out.textContent=inp.value==='0'?'Inertial':'Rotating';\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  \n  let lastTs=0;\n  let angle=0;\n  let angleRotatingFrame=0;\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,width){\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=12;\n    ctx.strokeStyle=color;\n    ctx.lineWidth=width||2;\n    ctx.beginPath();\n    ctx.moveTo(x1,y1);\n    ctx.lineTo(x2,y2);\n    ctx.stroke();\n    ctx.fillStyle=color;\n    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    const W=cv.width,H=cv.height;\n    \n    const velocity=Number(document.getElementById('c-vel').value);\n    const radius=Number(document.getElementById('c-rad').value);\n    const frameMode=Number(document.getElementById('c-frame').value);\n    \n    angle+=(velocity/radius)*dt;\n    angleRotatingFrame+=0.5*dt;\n    \n    const cx=W*0.35;\n    const cy=H*0.5;\n    \n    let objX=cx+radius*Math.cos(angle);\n    let objY=cy+radius*Math.sin(angle);\n    let displayAngle=angle;\n    \n    if(frameMode===1){\n      objX=cx+radius*Math.cos(angle-angleRotatingFrame);\n      objY=cy+radius*Math.sin(angle-angleRotatingFrame);\n      displayAngle=angle-angleRotatingFrame;\n    }\n    \n    const acc=velocity*velocity/radius;\n    \n    ctx.clearRect(0,0,W,H);\n    \n    ctx.fillStyle='rgba(100,150,180,0.08)';\n    ctx.beginPath();ctx.arc(cx,cy,radius,0,Math.PI*2);ctx.fill();\n    ctx.strokeStyle='#445862';\n    ctx.lineWidth=1.5;\n    ctx.beginPath();ctx.arc(cx,cy,radius,0,Math.PI*2);ctx.stroke();\n    \n    ctx.fillStyle='rgba(229,186,103,0.15)';\n    ctx.beginPath();\n    ctx.arc(cx,cy,radius-8,0,Math.PI*2);\n    ctx.arc(cx,cy,radius+8,0,Math.PI*2);\n    ctx.fill('evenodd');\n    \n    ctx.fillStyle='#f4f1ea';\n    ctx.beginPath();ctx.arc(cx,cy,5);ctx.fill();\n    \n    glowDot(objX,objY,7,'rgba(99,179,255,ALPHA)',0.6);\n    ctx.fillStyle='#63b3ff';\n    ctx.beginPath();ctx.arc(objX,objY,6);ctx.fill();\n    ctx.strokeStyle='#ffffff';\n    ctx.lineWidth=2;\n    ctx.beginPath();ctx.arc(objX,objY,6);ctx.stroke();\n    \n    const velMag=8;\n    const velX=-Math.sin(displayAngle)*velMag;\n    const velY=Math.cos(displayAngle)*velMag;\n    arrow(objX,objY,objX+velX*2.5,objY+velY*2.5,'#87e8a8',2.5);\n    \n    ctx.fillStyle='#87e8a8';\n    ctx.font=Math.round(H*0.035)+'px sans-serif';\n    ctx.textAlign='left';\n    ctx.fillText('v',objX+velX*2.8,objY+velY*2.8-4);\n    \n    if(frameMode===0){\n      const centripX=-Math.cos(displayAngle)*acc*6;\n      const centripY=-Math.sin(displayAngle)*acc*6;\n      arrow(objX,objY,objX+centripX,objY+centripY,'#de7f76',3);\n      \n      glowDot(objX+centripX*0.5,objY+centripY*0.5,5,'rgba(222,127,118,ALPHA)',0.5);\n      \n      ctx.fillStyle='#de7f76';\n      ctx.font=Math.round(H*0.04)+'px sans-serif';\n      ctx.textAlign='left';\n      ctx.fillText('F_c ⟵ INWARD',objX+centripX+20,objY+centripY-8);\n      ctx.font=Math.round(H*0.028)+'px sans-serif';\n      ctx.fillStyle='#87e8a8';\n      ctx.fillText('This is the REAL force',objX+centripX+20,objY+centripY+12);\n    }else{\n      const centrifX=Math.cos(displayAngle)*acc*5.5;\n      const centrifY=Math.sin(displayAngle)*acc*5.5;\n      arrow(objX,objY,objX+centrifX,objY+centrifY,'rgba(220,100,80,0.5)',2);\n      \n      const centripX=-Math.cos(displayAngle)*acc*6;\n      const centripY=-Math.sin(displayAngle)*acc*6;\n      arrow(objX,objY,objX+centripX,objY+centripY,'#de7f76',3);\n      \n      glowDot(objX+centrifX*0.5,objY+centrifY*0.5,5,'rgba(220,100,80,ALPHA)',0.35);\n      glowDot(objX+centripX*0.5,objY+centripY*0.5,5,'rgba(222,127,118,ALPHA)',0.5);\n      \n      ctx.fillStyle='#de7f76';\n      ctx.font=Math.round(H*0.036)+'px sans-serif';\n      ctx.textAlign='left';\n      ctx.fillText('F_c ⟵',objX+centripX-30,objY+centripY-15);\n      ctx.fillStyle='rgba(220,100,80,0.7)';\n      ctx.fillText('pseudo ⟹',objX+centrifX+12,objY+centrifY+12);\n    }\n    \n    ctx.fillStyle='#e5ba67';\n    ctx.font=Math.round(H*0.032)+'px sans-serif';\n    ctx.textAlign='left';\n    ctx.fillText('a_c = '+acc.toFixed(1)+' px/s²',20,H-20);\n    \n    ctx.fillStyle='#c8d4da';\n    ctx.font=Math.round(H*0.028)+'px sans-serif';\n    ctx.fillText('v = '+velocity.toFixed(1)+' m/s',20,H-45);\n    \n    if(frameMode===0){\n      document.getElementById('legend').textContent='Inertial Frame (Lab) — Only centripetal is real';\n    }else{\n      document.getElementById('legend').textContent='Rotating Frame — Centrifugal is pseudo-force';\n    }\n    \n    requestAnimationFrame(tick);\n  }\n  requestAnimationFrame(tick);\n  window.updateModel=function(){};\n})();\n</script>\n</body>\n</html>","remediationGoal":"Close wrong_assumption for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-13T20:15:20.540Z","cache_hit":false,"cost_usd":0},"error":null}