mouse joint alternative

I'm very new in box2d, and generally in game programing. I need to grab and drag an object through the screen. I've read that mouse joints aren't the best way to do this, but I don't understant how to use kinematic bodies and their velocity to emulate a mouse joint.

Thanks!
I would try the mouse joint first and then look for alternatives if there is a problem with it 😉
One alternative is to set the velocity of the body towards the touch position. Depending on what kind of movement you want, it might even be ok just to set the body position directly with SetTransform.

Original thread: https://box2d.org/forum/viewtopic.php?t=8593