Collisions: Did They Touch?
Games need to know when two things bump into each other. The trick is comparing positions — if they're close enough, that's a hit.
What you'll learn
Compare two positions and react to a collision.
💻 Code Editorjs
🎬
Press Run Code to see your creation!