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