How can I prevent spawning an actor inside of another?

Hey all! I’m trying to make a system that disallows spawning of objects while my “Spawn cube” is inside of another object. I have linked a Youtube video of this “Spawn cube” for clarity. It is essentially a physics object that is being held in front of my player to show the player where they will spawn a cube when the correct input is given. Here is the link:

Is there a way to prevent the spawning of physics objects while this “Spawn cube” is colliding with the other physics objects in the scene? Here is the setup that I am using to spawn the “Spawn cube” in front of the player.

Here is the setup that I am using to spawn the cubes within the “Spawn cube”.

Let me know if there is any additional information that you need to help me out! Thanks so much!

In the spawning node, you can say “try to adjust location, don’t spawn if overlapping.”

Could you add a boolean variable ‘isReadyToSpawn’ which is set to false when an object is overlapping the cube collision box (and true on endOverlap) ? This way, you prevent your spawn cube from spawning when spawn area is blocked.

This would work… however, the “spawn cube” that you see is actually a physics object that is being held in front of the player by a physics handle. I thought this system looked better and worked nicely, seeing as the player could not force the “spawn cube” into the ground because of the collision settings attached. When I set the spawn node to this ^^, I cannot spawn objects at all because the “spawn cube” would be overlapping. Is there a way to ignore the “spawn cube” when this ^^ setting is active on my spawn node?

Simply using the OnBeginOverlap nodes should do the trick.

Video here: