Collisions

Collisions

Hello,

Wanting to know if this is possible.

I am using jquery to move a box i want to know if jquery or javascript can tell if it is going to hit another object or it can just stop moving if it hits another object.

currently have a ajax php and mysql solution for this but is quite heavy just to check if an object is in the way or not

thanks