Freeze The Fall Of Emiri Top

function startPhysicsLoop() lastTs = performance.now(); if (!animationId) animationId = requestAnimationFrame(loop);

function stopPhysicsLoop() if (animationId) cancelAnimationFrame(animationId); animationId = null; freeze the fall of emiri top

let animationId: number | null = null;