{"job_id":"anim-job-55e37922-1c8b-4247-97d0-4732d85ac384","request_id":"bulk-2026-05-21T02-24-03-126Z-3-a1-physics.08.friction.static-to-kinetic","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-55e37922-1c8b-4247-97d0-4732d85ac384/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-55e37922-1c8b-4247-97d0-4732d85ac384/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-55e37922-1c8b-4247-97d0-4732d85ac384/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-55e37922-1c8b-4247-97d0-4732d85ac384/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-55e37922-1c8b-4247-97d0-4732d85ac384/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-55e37922-1c8b-4247-97d0-4732d85ac384","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-55e37922-1c8b-4247-97d0-4732d85ac384","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-21T02-24-03-126Z"},"exam_type":"neet","asset_type":"simulation","request_id":"bulk-2026-05-21T02-24-03-126Z-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</h1>\n    <p class=\"sub\">Friction depends on state—not a universal constant.</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\">15</strong> N</span><input id=\"c-force\" type=\"range\" min=\"5\" max=\"50\" step=\"1\" value=\"15\"/></label>\n    <label class=\"control\"><span>μ_s (static): <strong id=\"v-mus\">0.50</strong></span><input id=\"c-mus\" type=\"range\" min=\"0.2\" max=\"0.8\" step=\"0.05\" value=\"0.50\"/></label>\n    <label class=\"control\"><span>μ_k (kinetic): <strong id=\"v-muk\">0.30</strong></span><input id=\"c-muk\" type=\"range\" min=\"0.1\" max=\"0.6\" step=\"0.05\" value=\"0.30\"/></label>\n    <ul>\n      <li><strong>❌ Myth:</strong> Friction is always the same.</li>\n      <li><strong>✓ Truth:</strong> Static > kinetic always.</li>\n      <li><strong>Key:</strong> Motion changes friction law.</li>\n      <li><strong>Graph:</strong> Watch force vs friction curve.</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\":5,\"max\":50,\"step\":1,\"value\":15,\"units\":\"N\"},{\"key\":\"mus\",\"label\":\"μ_s (static)\",\"min\":0.2,\"max\":0.8,\"step\":0.05,\"value\":0.50,\"units\":\"\"},{\"key\":\"muk\",\"label\":\"μ_k (kinetic)\",\"min\":0.1,\"max\":0.6,\"step\":0.05,\"value\":0.30,\"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  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=12;\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();ctx.moveTo(x2,y2);ctx.lineTo(x2-s*nx+s*0.4*ny,y2-s*ny-s*0.4*nx);ctx.lineTo(x2-s*nx-s*0.4*ny,y2-s*ny+s*0.4*nx);ctx.fill();\n  }\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  // State: block position, velocity, applied force, friction force, phase\n  let blockX = 100;\n  let blockVel = 0;\n  let isMoving = false;\n  let frictionForce = 0;\n  let forceHistory = [];\n  let frictionHistory = [];\n  let appliedForceHistory = [];\n  let time = 0;\n  const mass = 5;\n  const g = 9.8;\n  const N = mass * g;\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 appliedF = Number(document.getElementById('c-force').value);\n    const muS = Number(document.getElementById('c-mus').value);\n    const muK = Number(document.getElementById('c-muk').value);\n\n    // Determine friction regime\n    const maxStaticFriction = muS * N;\n    const kineticFriction = muK * N;\n\n    if(!isMoving){\n      // At rest: friction opposes applied force up to max static\n      if(appliedF > maxStaticFriction){\n        isMoving = true;\n        frictionForce = kineticFriction;\n      } else {\n        frictionForce = appliedF;\n      }\n    } else {\n      // Moving: kinetic friction is constant\n      frictionForce = kineticFriction;\n      // Check if we should stop\n      if(appliedF < kineticFriction * 0.1){\n        isMoving = false;\n        blockVel = 0;\n      }\n    }\n\n    // Update velocity and position\n    if(isMoving){\n      const netF = appliedF - frictionForce;\n      const accel = netF / mass;\n      blockVel += accel * dt;\n      blockX += blockVel * dt;\n    }\n\n    // Constrain block to visible region\n    blockX = Math.max(60, Math.min(W - 60, blockX));\n    if(blockX >= W - 61 || blockX <= 61) blockVel = 0;\n\n    time += dt;\n\n    // Store history for graph (max 80 points)\n    forceHistory.push(appliedF);\n    frictionHistory.push(frictionForce);\n    appliedForceHistory.push(appliedF);\n    if(forceHistory.length > 80){\n      forceHistory.shift();\n      frictionHistory.shift();\n      appliedForceHistory.shift();\n    }\n\n    // ===== DRAW =====\n    ctx.clearRect(0,0,W,H);\n\n    // Background gradient\n    const bgGrad = ctx.createLinearGradient(0,0,0,H);\n    bgGrad.addColorStop(0,'rgba(63,98,114,0.3)');\n    bgGrad.addColorStop(1,'rgba(20,27,34,0.5)');\n    ctx.fillStyle = bgGrad;\n    ctx.fillRect(0,0,W,H);\n\n    const blockY = H * 0.45;\n    const blockW = 50;\n    const blockH = 40;\n\n    // ===== GROUND =====\n    const groundY = blockY + blockH + 8;\n    ctx.fillStyle = '#4b6170';\n    ctx.fillRect(30, groundY, W-60, 4);\n    for(let i=30; i<W-60; i+=12){\n      ctx.fillStyle = '#3a4d59';\n      ctx.fillRect(i, groundY+4, 6, 8);\n    }\n\n    // ===== BLOCK =====\n    ctx.fillStyle = isMoving ? '#8decb0' : '#df8279';\n    ctx.fillRect(blockX - blockW/2, blockY - blockH/2, blockW, blockH);\n    ctx.strokeStyle = '#f3f7fa';\n    ctx.lineWidth = 2;\n    ctx.strokeRect(blockX - blockW/2, blockY - blockH/2, blockW, blockH);\n\n    // Block label\n    ctx.fillStyle = '#101417';\n    ctx.font = Math.round(H*0.035)+'px sans-serif';\n    ctx.textAlign = 'center';\n    ctx.textBaseline = 'middle';\n    ctx.fillText(isMoving ? 'Moving' : 'Static', blockX, blockY);\n\n    // ===== FORCE ARROWS =====\n    const arrowBase = blockY - blockH/2 - 12;\n\n    // Applied force (red/orange)\n    const arrowLen1 = (appliedF / 50) * 120;\n    arrow(blockX - blockW/2 - 40, arrowBase, blockX - blockW/2 - 40 + arrowLen1, arrowBase, '#ff9d60', 3);\n    ctx.fillStyle = '#ff9d60';\n    ctx.font = Math.round(H*0.03)+'px sans-serif';\n    ctx.textAlign = 'center';\n    ctx.fillText('F_app='+appliedF.toFixed(0)+'N', blockX - blockW/2 - 40 + arrowLen1/2, arrowBase - 18);\n\n    // Friction force (blue)\n    const arrowLen2 = (frictionForce / 50) * 120;\n    arrow(blockX + blockW/2 + 40, arrowBase, blockX + blockW/2 + 40 - arrowLen2, arrowBase, '#4ea8ff', 3);\n    ctx.fillStyle = '#4ea8ff';\n    ctx.fillText('f='+frictionForce.toFixed(1)+'N', blockX + blockW/2 + 40 - arrowLen2/2, arrowBase - 18);\n\n    // State indicator\n    ctx.fillStyle = isMoving ? '#8decb0' : '#df8279';\n    ctx.font = Math.round(H*0.032)+'px sans-serif';\n    ctx.textAlign = 'left';\n    ctx.fillText(isMoving ? '→ KINETIC: f_k = μ_k·N' : '← STATIC: f_s ≤ μ_s·N', 45, H*0.08);\n\n    // ===== GRAPH: Force vs Applied Force =====\n    const graphX = 45;\n    const graphY = H * 0.55;\n    const graphW = W * 0.28;\n    const graphH = H * 0.35;\n\n    ctx.strokeStyle = '#3b4a55';\n    ctx.lineWidth = 1;\n    ctx.strokeRect(graphX, graphY, graphW, graphH);\n    ctx.fillStyle = 'rgba(20,27,34,0.7)';\n    ctx.fillRect(graphX, graphY, graphW, graphH);\n\n    // Axes\n    ctx.strokeStyle = '#a8b4bf';\n    ctx.lineWidth = 1;\n    ctx.beginPath();\n    ctx.moveTo(graphX+30, graphY+graphH-25);\n    ctx.lineTo(graphX+graphW-10, graphY+graphH-25);\n    ctx.stroke();\n    ctx.beginPath();\n    ctx.moveTo(graphX+30, graphY+10);\n    ctx.lineTo(graphX+30, graphY+graphH-25);\n    ctx.stroke();\n\n    // Axis labels\n    ctx.fillStyle = '#a8b4bf';\n    ctx.font = Math.round(H*0.025)+'px sans-serif';\n    ctx.textAlign = 'center';\n    ctx.fillText('Applied Force', graphX + graphW/2, graphY + graphH + 8);\n    ctx.save();\n    ctx.translate(graphX - 8, graphY + graphH/2);\n    ctx.rotate(-Math.PI/2);\n    ctx.textAlign = 'center';\n    ctx.fillText('Friction', 0, 0);\n    ctx.restore();\n\n    // Draw friction curves\n    if(forceHistory.length > 1){\n      // Static friction line\n      ctx.strokeStyle = 'rgba(223,130,121,0.6","remediationGoal":"Close concept_misunderstanding for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-21T02:37:50.383Z","cache_hit":false,"cost_usd":0},"error":null}