Featured
-
No Featured Found!
Tags
How to detect collision between two elements.
Can any one give me the idea. How I can detect collision between 2 dom element. I have got this code form MDN. But can't go thorough it. Please help me.
var rect1 = {x: 5, y: 5, width: 50, height: 50}
var rect2 = {x: 20, y: 10, width: 10, heig...