Line trace is triggered if it starts within collision, but only on some objects

Hi,

I’m attempting to make a penetration system based on tracing and Im having a problem with some objects reacting differently to traces than others.

Basically my system relies on traces not triggering a hit event if they begin within the collision of an object. However on some objects the trace immediately returns a hit and on some objects it does not.

Here is an example of the trace not being triggered


The yellow spheres indicate the start of a cast and the green sphere indicates the end.

Here is an example of the trace being triggered every time. Notice the green and purple spheres around every yellow sphere (start) and the red squares indicating a hit.

I can’t find a single difference in the settings of these meshes and they are both from the sample content in the engine. is there a way I can at least get consistent behaviour?

Thanks

Has anyone found a solution?
I have a similar problem and can’t figure out why it happens in a project while it doesn’t in other projects.