{"job_id":"anim-job-33a46172-b041-4bea-9ced-41def7f97a55","request_id":"bulk-2026-05-21T02-24-03-126Z-4-a1-physics.09.laws-of-motion.newton-second-law-fma","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-33a46172-b041-4bea-9ced-41def7f97a55/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-33a46172-b041-4bea-9ced-41def7f97a55/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-33a46172-b041-4bea-9ced-41def7f97a55/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-33a46172-b041-4bea-9ced-41def7f97a55/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-33a46172-b041-4bea-9ced-41def7f97a55/scene-source.json","duration_seconds":15,"byte_size":499528,"renderer":"html_three_js_local","parameters":{"style":"auto","executor":"native_render_executor","localPath":"/app/storage/assets/anim-job-33a46172-b041-4bea-9ced-41def7f97a55","control_count":2,"interactivity":"none","simulation_id":"physics.09.laws_of_motion.newton_second_law_fma","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-33a46172-b041-4bea-9ced-41def7f97a55","request":{"gap":{"topic":"newton-second-law","severity":"moderate","error_type":"wrong_assumption","memory_state":"fragile","display_topic":"Newton's Second Law (F = ma)","common_wrong_answer":"Heavier objects accelerate faster for the same force.","confidence_at_error":"high","correct_understanding":"Acceleration is proportional to net force and inversely proportional to mass: a = F/m. Mass and acceleration are independent of each other."},"target":{"style":"auto","render":{"fps":30,"format":"mp4","resolution":"1920x1080","include_thumbnail":true,"include_transcript":true},"audience":{"tone":"neutral_instructional","grade":"9","language":"en"},"interactivity":"none","duration_seconds":15},"context":{"chapter":{"name":"Laws of Motion","ncert_class":9},"sub_topics":[{"topic":"newton-second-law","key_concepts":["F = ma","acceleration","force","mass"]}]},"metadata":{"priority":"normal","trace_id":"bulk-run-2026-05-21T02-24-03-126Z"},"exam_type":"neet","asset_type":"simulation","request_id":"bulk-2026-05-21T02-24-03-126Z-4-a1-physics.09.laws-of-motion.newton-second-law-fma","subject_area":"physics"},"renderer":"html_three_js_local","storyboard":{"beats":[{"label":"Topic","visual":"Show the topic title and the key physical context.","narration":"Newton's Second Law (F = ma)"},{"label":"Mistake","visual":"Show the wrong approach and why it seems plausible.","narration":"Heavier objects accelerate faster for the same force."},{"label":"Correction","visual":"Show the right approach step by step.","narration":"Acceleration is proportional to net force and inversely proportional to mass: a = F/m. Mass and acceleration are independent of each other."},{"label":"Concept","visual":"Highlight the key formula and the governing relationship.","narration":"F = ma. acceleration. force"}],"title":"Newton's Second Law (F = ma)","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>Newton's Second Law: F=ma Remediation</title>\n  <style>\n    :root{--bg:#101417;--panel:#1c232e;--line:#3b4a55;--accent:#e0b15b;--text:#f3f7fa;--muted:#a8b4bf;--blue:#4ea8ff;--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%,#2a3944 0%,var(--bg) 58%);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:#162029;color:var(--accent);font-family:ui-monospace,monospace;font-size:0.9rem;box-shadow:inset 0 0 28px rgba(224,177,91,.14);}\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 #4b6170;border-radius:14px;position:relative;overflow:hidden;background:radial-gradient(circle at 50% 38%,#3f6272,#141b22 72%);box-shadow:0 18px 60px rgba(0,0,0,.42), inset 0 0 90px rgba(255,255,255,.05);}\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    .misconception{display:inline-block;width:12px;height:12px;border-radius:50%;background:#df8279;margin-right:4px;vertical-align:middle;}\n    .correction{display:inline-block;width:12px;height:12px;border-radius:50%;background:#8decb0;margin-right:4px;vertical-align:middle;}\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>Newton's Second Law</h1>\n    <p class=\"sub\">Why heavier objects don't accelerate faster for the same force.</p>\n    <p class=\"formula\">a = F / m</p>\n    <label class=\"control\"><span>Applied Force: <strong id=\"v-force\">10</strong> N</span><input id=\"c-force\" type=\"range\" min=\"5\" max=\"20\" step=\"1\" value=\"10\"/></label>\n    <label class=\"control\"><span>Light Mass: <strong id=\"v-m1\">1</strong> kg</span><input id=\"c-m1\" type=\"range\" min=\"1\" max=\"5\" step=\"0.5\" value=\"1\"/></label>\n    <label class=\"control\"><span>Heavy Mass: <strong id=\"v-m2\">5</strong> kg</span><input id=\"c-m2\" type=\"range\" min=\"2\" max=\"10\" step=\"0.5\" value=\"5\"/></label>\n    <ul>\n      <li><span class=\"misconception\"></span><strong>Misconception:</strong> Heavier → faster accel</li>\n      <li><span class=\"correction\"></span><strong>Truth:</strong> Same F, different m → different a</li>\n      <li>a₁ = F/m₁ and a₂ = F/m₂ are independent of object weight</li>\n      <li>Watch both objects accelerate at their own rate!</li>\n    </ul>\n  </aside>\n  <section>\n    <div class=\"stage\" id=\"stage\">\n      <div class=\"legend\" id=\"legend\">Observing accelerations...</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 = [\n  {\"key\":\"force\",\"label\":\"Applied Force\",\"min\":5,\"max\":20,\"step\":1,\"value\":10,\"units\":\"N\"},\n  {\"key\":\"m1\",\"label\":\"Light Mass\",\"min\":1,\"max\":5,\"step\":0.5,\"value\":1,\"units\":\"kg\"},\n  {\"key\":\"m2\",\"label\":\"Heavy Mass\",\"min\":2,\"max\":10,\"step\":0.5,\"value\":5,\"units\":\"kg\"}\n];\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  \n  let lastTs=0;\n  let x1=0, v1=0, a1=0;\n  let x2=0, v2=0, a2=0;\n  let t=0;\n  let trail1=[], trail2=[];\n  const trailLen=120;\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=2){\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=14;\n    ctx.strokeStyle=color;ctx.lineWidth=width;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 trail(points,color){\n    if(points.length<2)return;\n    ctx.strokeStyle=color;ctx.lineWidth=2.5;ctx.globalAlpha=0.4;\n    ctx.beginPath();ctx.moveTo(points[0].x,points[0].y);\n    for(let i=1;i<points.length;i++)ctx.lineTo(points[i].x,points[i].y);\n    ctx.stroke();ctx.globalAlpha=1;\n  }\n  \n  function tick(ts){\n    const dt=Math.min(0.016,(ts-lastTs)/1000);lastTs=ts;\n    const W=cv.width,H=cv.height;\n    \n    // Read slider values\n    const force=Number(document.getElementById('c-force').value);\n    const m1=Number(document.getElementById('c-m1').value);\n    const m2=Number(document.getElementById('c-m2').value);\n    \n    // Calculate accelerations: a = F/m\n    a1=force/m1;\n    a2=force/m2;\n    \n    // Update velocities and positions\n    v1+=a1*dt;\n    v2+=a2*dt;\n    x1+=v1*dt;\n    x2+=v2*dt;\n    t+=dt;\n    \n    // Clamp positions to canvas\n    const xMax=W*0.65;\n    if(x1>xMax){x1=0;v1=0;trail1=[];}\n    if(x2>xMax){x2=0;v2=0;trail2=[];}\n    \n    // Record trail points\n    const y1Pos=H*0.35;\n    const y2Pos=H*0.65;\n    trail1.push({x:x1,y:y1Pos});\n    trail2.push({x:x2,y:y2Pos});\n    if(trail1.length>trailLen)trail1.shift();\n    if(trail2.length>trailLen)trail2.shift();\n    \n    // Clear canvas\n    ctx.clearRect(0,0,W,H);\n    \n    // Draw background grid\n    ctx.strokeStyle='rgba(59,74,85,0.2)';ctx.lineWidth=1;\n    for(let i=0;i<W;i+=W/10){\n      ctx.beginPath();ctx.moveTo(i,0);ctx.lineTo(i,H);ctx.stroke();\n    }\n    for(let i=0;i<H;i+=H/6){\n      ctx.beginPath();ctx.moveTo(0,i);ctx.lineTo(W,i);ctx.stroke();\n    }\n    \n    // Draw start line\n    ctx.strokeStyle='rgba(168,180,191,0.4)';ctx.lineWidth=2;ctx.setLineDash([4,4]);\n    ctx.beginPath();ctx.moveTo(W*0.1,0);ctx.lineTo(W*0.1,H);ctx.stroke();\n    ctx.setLineDash([]);\n    \n    // Draw trails\n    trail(trail1,'rgba(78,168,255,0.6)');\n    trail(trail2,'rgba(223,130,121,0.6)');\n    \n    // Draw applied force arrows\n    const arrowLen1=Math.min(force*3,80);\n    const arrowLen2=Math.min(force*3,80);\n    arrow(W*0.08,y1Pos,W*0.08+arrowLen1,y1Pos,'#4EA8FF',3);\n    arrow(W*0.08,y2Pos,W*0.08+arrowLen2,y2Pos,'#4EA8FF',3);\n    \n    // Draw light mass object\n    ctx.fillStyle='#4EA8FF';\n    ctx.beginPath();ctx.arc(W*0.1+x1*0.6,y1Pos,12,0,Math.PI*2);ctx.fill();\n    glowDot(W*0.1+x1*0.6,y1Pos,12,'rgba(78,168,255,ALPHA)',0.5);\n    \n    // Draw heavy mass object\n    ctx.fillStyle='#DF8279';\n    ctx.beginPath();ctx.arc(W*0.1+x2*0.6,y2Pos,16,0,Math.PI*2);ctx.fill();\n    glowDot(W*0.1+x2*0.6,y2Pos,16,'rgba(223,130,121,ALPHA)',0.5);\n    \n    // Draw velocity vectors\n    const vScale=0.03;\n    if(Math.abs(v1)>0.1){\n      arrow(W*0.1+x1*0.6,y1Pos,W*0.1+x1*0.6+v1*vScale,y1Pos,'#8DECB0',2);\n    }\n    if(Math.abs(v2)>0.1){\n      arrow(W*0.1+x2*0.6,y2Pos,W*0.1+x2*0.6+v2*vScale,y2Pos,'#8DECB0',2);\n    }\n    \n    // Draw labels\n    ctx.fillStyle='var(--text)';ctx.font='bold '+Math.round(H*0.045)+'px sans-serif';\n    ctx.fillStyle='#4EA8FF';ctx.fillText('Light (m₁='+(m1.toFixed(1))+'kg)',W*0.12,y1Pos-28);\n    ctx.fillStyle='#DF8279';ctx.fillText('Heavy (m₂='+(m2.toFixed(1))+'kg)',W*0.12,y2Pos-28);\n    \n    // Draw info panel\n    ctx.fillStyle='rgba(28,35,46,0.75)';ctx.fillRect(W*0.7,H*0.08,W*0.28,H*0.8);\n    ctx.strokeStyle='#3B4A55';ctx.lineWidth=1.5;ctx.strokeRect(W*0.7,H*0.08,W*0.28,H*0.8);\n    \n    ctx.fillStyle='#E0B15B';ctx.font='bold '+Math.round(H*0.05)+'px sans-serif';\n    ctx.fillText('Analysis',W*0.75,H*0.16);\n    \n    ctx.fillStyle='#F3F7FA';ctx.font=Math.round(H*0.036)+'px sans-serif';\n    const line1='Force F = '+force.toFixed(1)+' N';\n    const line2='a₁ = F/m₁ = '+a1.toFixed(2)+' m/s²';\n    const line3='a₂ = F/m₂ = '+a2.toFixed(2)+' m/s²';\n    const ratio=a1/a2;\n    const line4='Speed ratio = '+ratio.toFixed(2)+'×';\n    \n    ctx.fillText(line1,W*0.75,H*0.22);\n    ctx.fillStyle='#4EA8FF';ctx.fillText(line2,W*0.75,H*0.31);\n    ctx.fillStyle='#DF8279';ctx.fillText(line3,W*0.75,H*0.40);\n    ctx.fillStyle='#8DECB0';\n    ctx.fillText('Lighter accelerates',W*0.75,H*0.52);\n    ctx.fillText(''+ratio.toFixed(1)+'× faster!","remediationGoal":"Close wrong_assumption for physics."},"rendererStyle":"three_js"},"simulation_title":"Newton's Second Law (F = ma)"}},"metadata":{"rendered_at":"2026-05-21T02:43:10.009Z","cache_hit":false,"cost_usd":0},"error":null}