Multi-puck temporary joints glitch

Hi,

In the Multi-puck example, the gameUI.lua file contains a general function for dragging physics bodies.

The function creates a temporary joint while the object is touched by the user, when the object is no longer touched, the joint is removed. However there is a glitch since occasionally a joint is created between two physical bodies that were never touched, and sometimes a joint is created even to the background. Essentially these physical bodies get stuck to each other or the screen. Has anyone experienced this?

When I incorporated the function into my own project, I also kept getting these glitche… was hoping someone has a solution.

Thanks
[import]uid: 78150 topic_id: 16496 reply_id: 316496[/import]

Yes I noticed exactly the same when I used this sample as template for an own idea.

Later I used another drag function and it was away… I modified it for some special needs and so it’s bad as an example now.

AFAIR I took the other drag function from the dragging part in the docs:

http://developer.anscamobile.com/content/game-edition-physics-joints#Dragging_objects_with_touch_joints

[import]uid: 70114 topic_id: 16496 reply_id: 61577[/import]