Draggable object collision

So I have a dynamic draggable object that I want it to collide with a static wall. I managed to get it done by adding a boolean that becomes false in the collision function, and back on again in touch began and it works perfect, except for one thing, when I drag the object very fast it still goes through the wall. I even added this line of code:

physics.setContinuous( false )

But it didn’t make any difference, any suggestions ?

Post your code. It will help us inform you more accurately.

In lieu of that, this is a fairly common problem and it results from the physics engine iteration calculations. In short, an object moving fast enough will have a position calculated on one side of a small enough object, and then on the other side. The jump in between is not tested for collisions, so you need to do something to increase the likelihood that a collision will be  encountered. You can do that like this…

https://docs.coronalabs.com/daily/api/library/physics/setPositionIterations.html

The better method is to simply make your objects thicker. For example, never ever have a wall which is 1 pixel thick; Only very slow moving (or very large) objects will collide with it.

Post your code. It will help us inform you more accurately.

In lieu of that, this is a fairly common problem and it results from the physics engine iteration calculations. In short, an object moving fast enough will have a position calculated on one side of a small enough object, and then on the other side. The jump in between is not tested for collisions, so you need to do something to increase the likelihood that a collision will be  encountered. You can do that like this…

https://docs.coronalabs.com/daily/api/library/physics/setPositionIterations.html

The better method is to simply make your objects thicker. For example, never ever have a wall which is 1 pixel thick; Only very slow moving (or very large) objects will collide with it.