In Minecraft, you need 14 obsidian to build the frame of the nether portal. The base of the nether portal should be 4 obsidian wide, and the sides of the nether.
When the player, mobs, projectiles, dropped items, or empty minecarts pass through the portal, they all go through to the other side, preserving their direction.