Summary
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?
Please select what you are reporting on:
Creative
What Type of Bug are you experiencing?
Verse
Steps to Reproduce
- Spawn Entities through Verse
- Add a
mesh_component
to each entity using a Prefab through Verse - Teleport the root entity every ~0.2 seconds using
SetGlobalTransform
- Use another Entity to
FindOverlapHits
where the teleporting entities are
Expected Result
It is expected that the teleporting entities would be found with FindOverlapHits
Observed Result
There are no hits for the teleporting entities.
Platform(s)
PC
Additional Notes
The behavior is inconsistent and probably depends on the time that has passed since the mesh_components transform has changed. So you might want to lower the time in between teleports for testing.