Body produces collision but ignores it

Hey!, I have tried searching these forums for a solution, but it was to no avail.

The effect I would to like create is when two bodies collide, one body will react to the collision while the other body simply ignores it.

In my current approach, when the two objects collide I change the collision filters of both objects (so they don't collide anymore), and set the linear velocity of one of the bodies to the velocity it had before the collision. This method works, but it produces jagged motions.

Ideally what I would like is for one body to pass through another body as if it were a sensor, while the other object reacts as if the two bodies collided.

Any feedback or thoughts would be greatly appreciated!

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