Thanks! :)
The idea is that you pull enemies through those walls or "portals" to kill them, as your weapon itself doesn't do any damage. There are also a few bugs which lead to some additional walls spawning, or sometimes the walls appear as small violet cubes which shouldn't be there.