Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8890579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:32:05+00:00 2026-06-14T22:32:05+00:00

I use the JQuery collision library : JQuery Collision example My scenario : a

  • 0

I use the JQuery collision library :

JQuery Collision example

My scenario :

a = object which is dragged.

b = object that should return a collision detection if collided.

*Every 100ms, on drag event of « a », I call a function that checks for collision with « b »

If « a » collide with « b », I can get the divs object poped by the library. But I cant find an easy way to get the elements(« b ») which are collided. I have a workaround for this but it’s kinda to much so I’d like a shorten way directly from the library or so..

How can I get which of MY elements that are collided by those “poped” divs

Any ideas or suggestion? Thanks a lot for your time!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T22:32:06+00:00Added an answer on June 14, 2026 at 10:32 pm

    I just found out what was my problem and it fixed my workaround pattern.

    //returns an array of overlaps div elements (my problem)
     var overlaps = $("#selector").collision( ".isSomething", { as: "<div/>" } ); 
    
    
    //returns an array of collided elements (the solutions)
    var overlaps = $("#selector").collision( ".isAVisibleTree", { relative: "body", obstacleData: "odata", as: "<div/>" } );
    
    //my collided object
    overlaps[i].data("odata");
    

    Hope it helps,

    Marc

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How does collision detection work in JavaScript? I can't use jQuery or gameQuery -
I use jQuery.load to load a localhost URL (eg: localhost/wp/contact) which it works fine,
I use Jquery tools rangeinput . For example I have: <input id=testId title=test class=range
I use jQuery to attach some plugins in the $(document).ready() handler - for example,
We use jQuery to parse some HTML. I then need to traverse that document
I use jQuery and XAJAX at my page. I have for example: <span id=one>one</span>
I use jquery for ajax tabs, not jquery UI that is to large for
I use jQuery to make an AJAX POST request to my server, which can
I use jQuery ajax to refresh a div every 2 seconds. How to stop
Use jquery + php. Doing custom AJAX captcha. i.e user clicks on image, it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.