When you say you're "literally going to be worlds apart", unless one of you is going to university on Mars, that isn't "literally" the case at all.
It might feel like a big deal, but I promise that if you want to make it work, it will work.
You can call and text, and video chat to an agreed schedule (but not too often as you don't want it to have a negative impact on your uni work or friendships) and you can take it in turns to spend the weekend at each other's accommodation. You probably shouldn't do it every weekend as you'll want to spend time with your uni friends and family at home too, so maybe see each other alternate weekends, and alternate visits between accommodation. Then of course you have holiday time, and you will find that there is a lot of holiday time at uni - particularly the summer, which can be between two and four months depending on where you go.
Honestly, if you both want it to work, it will. It might not be easy, but it can work. I had a boyfriend through my first year at uni though he wasn't a student. He visited me every week and I went to see him some weekends, and we ended up getting a flat together for my second year (which I regret hugely, as I wish I'd made more of the student experience tbh).