{"job_id":"anim-job-e11a8e93-1973-4dc6-b9be-97099795c1de","request_id":"bulk-2026-05-21T09-24-28-957Z-3-a1-physics.08.friction.static-to-kinetic","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-e11a8e93-1973-4dc6-b9be-97099795c1de/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-e11a8e93-1973-4dc6-b9be-97099795c1de/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-e11a8e93-1973-4dc6-b9be-97099795c1de/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-e11a8e93-1973-4dc6-b9be-97099795c1de/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-e11a8e93-1973-4dc6-b9be-97099795c1de/scene-source.json","duration_seconds":15,"byte_size":469586,"renderer":"html_three_js_local","parameters":{"style":"auto","executor":"native_render_executor","localPath":"/app/storage/assets/anim-job-e11a8e93-1973-4dc6-b9be-97099795c1de","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-e11a8e93-1973-4dc6-b9be-97099795c1de","request":{"gap":{"topic":"friction-static_to_kinetic","severity":"moderate","error_type":"concept_misunderstanding","memory_state":"fragile","display_topic":"Static to Kinetic Friction","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":"8","language":"en"},"interactivity":"none","duration_seconds":15},"context":{"chapter":{"name":"Friction","ncert_class":8},"sub_topics":[{"topic":"friction-static_to_kinetic","key_concepts":["Static to Kinetic Friction","Friction"]}]},"metadata":{"priority":"normal","trace_id":"bulk-run-2026-05-21T09-24-28-957Z"},"exam_type":"neet","asset_type":"simulation","request_id":"bulk-2026-05-21T09-24-28-957Z-3-a1-physics.08.friction.static-to-kinetic","subject_area":"physics"},"renderer":"html_three_js_local","storyboard":{"beats":[{"label":"Topic","visual":"Show the topic title and the key physical context.","narration":"Static to Kinetic Friction"},{"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":"Static to Kinetic Friction. Friction"}],"title":"Static to Kinetic Friction","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>Static vs Kinetic Friction</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    @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>Static vs Kinetic Friction</h1>\n    <p class=\"sub\">Why friction changes with motion state</p>\n    <p class=\"formula\">f_s ≤ μ_s·N  |  f_k = μ_k·N</p>\n    <label class=\"control\"><span>Applied Force: <strong id=\"v-force\">3</strong> N</span><input id=\"c-force\" type=\"range\" min=\"0\" max=\"15\" step=\"0.5\" value=\"3\"/></label>\n    <label class=\"control\"><span>μ_s (static): <strong id=\"v-mus\">0.5</strong></span><input id=\"c-mus\" type=\"range\" min=\"0.2\" max=\"0.9\" step=\"0.05\" value=\"0.5\"/></label>\n    <label class=\"control\"><span>μ_k (kinetic): <strong id=\"v-muk\">0.3</strong></span><input id=\"c-muk\" type=\"range\" min=\"0.1\" max=\"0.7\" step=\"0.05\" value=\"0.3\"/></label>\n    <label class=\"control\"><span>Mass: <strong id=\"v-mass\">2</strong> kg</span><input id=\"c-mass\" type=\"range\" min=\"1\" max=\"5\" step=\"0.5\" value=\"2\"/></label>\n    <ul>\n      <li>✗ <strong style=\"color:var(--red)\">Misconception:</strong> Friction force is always the same</li>\n      <li>✓ <strong style=\"color:var(--green)\">Reality:</strong> Static friction adapts up to μ_s·N, then drops to μ_k·N</li>\n      <li>🔑 <strong>Key:</strong> Watch the force graph threshold jump</li>\n    </ul>\n  </aside>\n  <section>\n    <div class=\"stage\" id=\"stage\">\n      <div class=\"legend\" id=\"legend\">Ready</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\":\"Applied Force\",\"min\":0,\"max\":15,\"step\":0.5,\"value\":3,\"units\":\"N\"},{\"key\":\"mus\",\"label\":\"Static Coeff.\",\"min\":0.2,\"max\":0.9,\"step\":0.05,\"value\":0.5,\"units\":\"\"},{\"key\":\"muk\",\"label\":\"Kinetic Coeff.\",\"min\":0.1,\"max\":0.7,\"step\":0.05,\"value\":0.3,\"units\":\"\"},{\"key\":\"mass\",\"label\":\"Mass\",\"min\":1,\"max\":5,\"step\":0.5,\"value\":2,\"units\":\"kg\"}];\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  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;ctx.lineWidth=width||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);\n    ctx.fill();\n  }\n  \n  function pulseRing(x,y,r,color,phase){\n    const alpha = Math.abs(Math.sin(phase * Math.PI)) * 0.6;\n    ctx.strokeStyle=color.replace('ALPHA',String(alpha));\n    ctx.lineWidth=2;\n    ctx.beginPath();ctx.arc(x,y,r,0,Math.PI*2);ctx.stroke();\n  }\n  \n  // State variables\n  let vx = 0;\n  let x = 0;\n  let isMoving = false;\n  let time = 0;\n  let forceHistory = [];\n  let frictionHistory = [];\n  const maxHistory = 120;\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 appliedForce = Number(document.getElementById('c-force').value);\n    const mu_s = Number(document.getElementById('c-mus').value);\n    const mu_k = Number(document.getElementById('c-muk').value);\n    const mass = Number(document.getElementById('c-mass').value);\n    \n    const g = 9.8;\n    const N = mass * g; // Normal force\n    const f_s_max = mu_s * N;\n    const f_k = mu_k * N;\n    \n    // Physics update\n    time += dt;\n    \n    if(!isMoving){\n      if(appliedForce > f_s_max){\n        isMoving = true;\n        vx = 0;\n      }\n    }\n    \n    if(isMoving){\n      const frictionForce = f_k;\n      const netForce = appliedForce - frictionForce;\n      const acc = netForce / mass;\n      vx += acc * dt;\n      x += vx * dt;\n      \n      if(x < 0.1){\n        x = 0;\n        vx = 0;\n        isMoving = false;\n      }\n    }\n    \n    const currentFriction = isMoving ? f_k : Math.min(appliedForce, f_s_max);\n    forceHistory.push(appliedForce);\n    frictionHistory.push(currentFriction);\n    if(forceHistory.length > maxHistory){\n      forceHistory.shift();\n      frictionHistory.shift();\n    }\n    \n    // Draw\n    ctx.clearRect(0,0,W,H);\n    \n    // Background grid\n    ctx.strokeStyle='rgba(59,74,85,0.25)';ctx.lineWidth=1;\n    for(let i=0;i<W;i+=80){ctx.beginPath();ctx.moveTo(i,0);ctx.lineTo(i,H);ctx.stroke();}\n    for(let j=0;j<H;j+=60){ctx.beginPath();ctx.moveTo(0,j);ctx.lineTo(W,j);ctx.stroke();}\n    \n    // Left side: Block simulation\n    const blockX = 120 + x * 150;\n    const blockY = H * 0.5;\n    const blockW = 40, blockH = 50;\n    \n    // Ground\n    ctx.fillStyle='#465a64';\n    ctx.fillRect(80,blockY + blockH/2, W*0.35, 4);\n    \n    // Block\n    ctx.fillStyle=isMoving ? '#4ea8ff' : '#e0b15b';\n    ctx.fillRect(blockX, blockY - blockH/2, blockW, blockH);\n    ctx.strokeStyle='#f3f7fa';ctx.lineWidth=1;\n    ctx.strokeRect(blockX, blockY - blockH/2, blockW, blockH);\n    \n    // Block label\n    ctx.fillStyle='#101417';ctx.font=Math.round(H*0.036)+'px sans-serif';\n    ctx.textAlign='center';ctx.fillText('m',blockX+blockW/2,blockY+6);\n    \n    // Applied force arrow\n    const forceArrowLen = Math.min(appliedForce * 20, 180);\n    arrow(blockX+blockW+8, blockY, blockX+blockW+8+forceArrowLen, blockY, '#8decb0', 3);\n    ctx.fillStyle='#8decb0';ctx.font=Math.round(H*0.032)+'px sans-serif';\n    ctx.textAlign='left';ctx.fillText('F_app='+appliedForce.toFixed(1)+'N',blockX+blockW+12,blockY-28);\n    \n    // Friction force arrow (left)\n    const fricArrowLen = Math.min(currentFriction * 20, 180);\n    arrow(blockX-8, blockY, blockX-8-fricArrowLen, blockY, '#df8279', 3);\n    ctx.fillStyle='#df8279';ctx.textAlign='right';\n    ctx.fillText('f='+(currentFriction).toFixed(1)+'N',blockX-12,blockY+28);\n    \n    // Velocity indicator\n    if(isMoving && vx > 0.1){\n      ctx.fillStyle='#4ea8ff';\n      ctx.font='bold '+Math.round(H*0.028)+'px sans-serif';\n      ctx.textAlign='center';\n      ctx.fillText('v='+vx.toFixed(2)+'m/s',blockX+blockW/2,blockY-blockH/2-20);\n    }\n    \n    // Right side: Force graph\n    const graphX = W * 0.55;\n    const graphY = H * 0.25;\n    const graphW = W * 0.35;\n    const graphH = H * 0.5;\n    \n    // Graph frame\n    ctx.strokeStyle='#465a64';ctx.lineWidth=1;\n    ctx.strokeRect(graphX,graphY,graphW,graphH);\n    ctx.fillStyle='rgba(20,27,34,0.6)';\n    ctx.fillRect(graphX,graphY,graphW,graphH);\n    \n    // Max static threshold line\n    const thresholdY = graphY + graphH - (f_s_max / 15) * graphH;\n    ctx.strokeStyle='#e0b15b';ctx.lineWidth=2;ctx.setLineDash([5,5]);\n    ctx.beginPath();ctx.moveTo(graphX,thresholdY);ctx.lineTo(graphX+graphW,thresholdY);ctx.stroke();\n    ctx.setLineDash([]);\n    ctx.fillStyle='#e0b15b';ctx.font=Math.round(H*0.024)+'px sans-serif';\n    ctx.textAlign='right';ctx.fillText('f_s,max',graphX-8,thresholdY+6);\n    \n    // Kinetic friction line\n    const kineticY = graphY + graphH - (f_k / 15) * graphH;\n    ctx.strokeStyle='#df8279';ctx.lineWidth=2;ctx.setLineDash([3,3]);\n    ctx.beginPath();ctx.moveTo(graphX,kineticY);ctx.lineTo(graphX+graphW,kineticY);ctx.stroke();\n    ctx.setLineDash([]);\n    ctx.fillStyle='#df8279';ctx.textAlign='right';\n    ctx.fillText('f_k',graphX-8,kineticY-8);\n    \n    // Plot friction history\n    ctx.strokeStyle='#df8279';ctx.lineWidth=2;\n    ctx.beginPath();\n    for(let i=0;i<frictionHistory","remediationGoal":"Close concept_misunderstanding for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-21T09:39:08.350Z","cache_hit":false,"cost_usd":0},"error":null}