How to detect a collision with JS
and this causes a small but still annoying lag. I've looked into this here and on google, but no one seems to bother with this as we have different mechanisms to do this. Does anyone know how to solve this problem without nested loops?
Thanks for the answer!
source to share