Can we express overlap line of mesh?

Like the blue line in the picture, can you express the overlapping part with a line?
When the Skeleton mesh pass through a wall or floor, I want to express the border of it that overlaps with it with a shining line.

You can do this with distance fields