A top view of the world which consists of 5 rooms
Theses portals/rooms are also used to do a crude estimate of which objects can collide with which objects, hence only objects in the same room should be considered for collision.
Different views showing the portal engine is working.