How to prevent actors from spawning in inaccessible areas?

You can fetch that data from mesh collision, have another component act as simpler collider, like @Rev0verDrive already mentioned or use bounds.

So for example if player is too close to wall either spawn it inside the player, behind him or prevent spawning it at all and display some message. If minimum distance is kept you can spawn the item in front of the camera and attach it to the player. For it to not going through the wall use CCD (continuous collision detection)

1 Like