How to prevent object outline from showing through character mesh?

Hey, so I have created an outline around objects and have it behave exactly the way I want to except one thing, the outline is passing through my character. I’m looking for a way to stop it from passing through my character.

I used the post process to create the outline. And I’m using a sphere trace for objects to make it appear.

Sphere trace tick event to display outline BP here:

My Material for post process:

Issue where I can see the line through the character:
image

If anyone has some insight on how to prevent it from going through it would be amazing. :slight_smile:

2 Likes

I have the exact same issue someone help!