Circular sticky collision upon conditions being 'true'

Hello,

  I am new to Corona SDK and have been enjoying it so far! :slight_smile: I am working on an app to build molecular models for Chemistry, where the user can drag one ‘element’ circle to another ‘element’ circle and if the two elements can chemically bond, they will collide and “lock” modeling a bond. 

  I have read through a lot of the tutorials and understand the basics of collisions, but I have not seen much on static collisions where two objects can “fuse” together. If anyone has an ideas, please let me know, also is it possible to set the conditions to where two circular objects that “don’t bond” cannot be joined together?

I am sorry if this is as clear as mud, thanks so much for the help

*Jaime*

Hi Jaime,

Do you want the objects to “overlap” before the user releases? Or, do you just want them to touch each other (around the edge) to sense this, before deciding if they bond? If they need to overlap, you’ll need to make one (or the other) a sensor object.

For fusing them together, you should explore joints. The guide on that subject is here:

http://docs.coronalabs.com/guide/physics/physicsJoints/index.html

Hope this helps,

Brent Sorrentino

Hi Jaime,

Do you want the objects to “overlap” before the user releases? Or, do you just want them to touch each other (around the edge) to sense this, before deciding if they bond? If they need to overlap, you’ll need to make one (or the other) a sensor object.

For fusing them together, you should explore joints. The guide on that subject is here:

http://docs.coronalabs.com/guide/physics/physicsJoints/index.html

Hope this helps,

Brent Sorrentino