Check if two elements are colliding.
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Source
.gitignore
README.md
collide.png
package.yml

README.md

Element.collide

Check if two elements are colliding.

Screenshot

How to use

The code is self explanatory. It will return true if the elements collide or false if the elements don't collide.

firstElement.elCollide(secondElement);