I cannot get FindOverlapHits
to return mesh components that are spawned at runtime. If I place the same entity in the world before launching, it will register a hit. But, if I spawn that same entity through the code, it doesn’t register.
I have it visible, so I know it’s there. And I have had no luck with changing the collision profiles. Also, I am teleporting the entity that the mesh component is on (using SetGlobalTransform
) every couple of ticks so that could be the issue, maybe?
Has anyone else encountered this?