Portal 2 – What are these strange floating boxes in the void

portal-2source-engine

In Portal 2, when I no clip through the world, I sometimes notice these unreachable boxes, and different shapes floating in the middle of nowhere.

enter image description here

This map was made by valve, and you can see these boxes on almost every single map


From experience with the Portal 2 Authoring tools, I know that no props, objects, functions can exist in the void, and have to be sealed in walls, or you get a "leak". This is said to be because the game engine needs to separate the void from the playable area.

Is there any actual benefit to putting logic outside of the map, as having it inside does not interfere with playability at all? If I was to make a map, why would putting logic outside benefit me in any way?

Best Answer

Those boxes are source for the Hammer Editor, like... I think they put settings spawns to teleport and ect. inside

So they put a cube inside the box, the reason is because you don't want a cube in your map for no reason, I know they come out from a box but how you get another cube if the other cube gets destroyed? Thats exactly this.

If your cube gets destroyed it calls another cube from those unreachable boxes. Inside one of them there is a cube, this cube is used to be a template.

If a cube is a template you can spawn other templates, which will result another cube.