|
|
|
|
|
by bemmu
4002 days ago
|
|
Calling requestAnimationFrame again after drawing the previous frame gives smoother results, no need for setInterval. You can know how much to update the physics by seeing how much Date.now() has changed since the previous frame. |
|