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!
asked Jan 21 '17 at 05:14 PM in Blueprint Scripting
In the spawning node, you can say "try to adjust location, don't spawn if overlapping."
answered Jan 22 '17 at 03:20 PM
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.
answered Jan 24 '17 at 12:16 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here