We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Drag & Drop with condition

Home Forums Puzzles Drag & Drop with condition

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24407
    techdev
    Participant

    Hi,

    I am trying to implement interactive drag and drop, where I have three objects in the page a cube, a box and a sphere. I want to drag a cube over sphere or box and if it collides with sphere (i.e it’s on same or approx same position of sphere in world) then it should move back to original position, but if I move it over to box and if it collides to box than it should snap to box position.:scratch:

    Thanks in advance

    #24426

    Hi, in general such things can be made using distance puzzle. Do you really want to use physics here? )

    Soft8Soft Tech Chief
    FB | Twitter | LinkedIn

    #24444
    techdev
    Participant

    Thanks for the quick reply, I don’t need physics.it’s working now. :yahoo:

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.