Please recommend a JQuery plugin that handles collision detection for draggable elements [closed]
You can try jquery-collision plus jquery-ui-draggable-collision. Full disclosure: I just wrote and released these on sourceforge. The first allows this: var hit_list = $(“#collider”).collision(“.obstacle”); which is the list of all “.obstacle” that overlap “#collider”. The second allows: $(“#collider”).draggable( { obstacle: “.obstacle” } ); Which gives you (among other things), a “collision” event to bind to: … Read more