Outline mesh

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Kohl

I created an outline mesh but when it crosses an element, this element is in front of it, as in the example of the image pointed by the red arrows, where the element below is inside the “black outline”. How do you solve this so that the black outline is above the element below it? Even when an object enters the outline mesh.
enter image description here

The ingame problem is that because objects have physical behavior, sometimes an outline goes into another object, disappearing. And if you decrease the outline, it gets a space between the objects.
enter image description here
Sorry for google tranlate. I hope you understand