Randomly spawned actors overlapping

Hi

I’m trying to randomly create a level on play by generating a random number of buildings to be placed at random points on the map. However sometimes this works perfectly like this:

And other times I get this sort of thing happening:

If it was a rare occasion for the buildings to overlap I wouldn’t have a problem, however it does seem to be happening much more than I’d like. And despite the ‘Spawn even if colliding’ option is checked or not this seems to happen (I read this was a bug a year ago so querying if it’s fixed or not).

So is there a way around this?

My spawn area blueprint is as follows and is attached to a simple box collier re-sized to fit the level:

Thanks

Bobby

Hi,

I don’t know about the bug of Spawn even if colliding, but you should test the hit before you spawn your actor. For exemple you could create an object of the same size of the object you want spawn (or bigger) and place it at the location you want. Check if it collide with another item with GetOverlappingActor, if true find a new location.

Hi

Something like this?

I feel I have done this completely wrong, however the buildings have spaced out a little but I still get occasions where they overlap.

Oh and this was the [post][2] I found re a bug with ‘Spawn even If Colliding’