Check overlap with no collision

Hi

is there a way to check if a static mesh with no collision is overlapping with another mesh (with collision)?
i am placing meshes in game and need to check if it will overlap anything else before i place it and turn on collision.

thanks

1 Like

You could do a box, capsule or sphere trace at the location which approximates the mesh you are about to spawn.
Another thing you can do is first set your mesh collision to “block all”.
Then when you spawn your actor using the SpawnActorFromClass node you set the collision handling override to “Do Not Spawn” and if the actor spawns you disable the collision of your static mesh.

1 Like

thanks. i searched the box idea and came up with this.
if BoxOverlapActors length is > 0 dont allow spawning.

2 Likes