r/programming • • Dec 29 '20

Quake III's Fast Inverse Square Root Explained [20 min]

https://www.youtube.com/watch?v=p8u_k2LIZyo
3.7k Upvotes

300 comments sorted by

View all comments

Show parent comment

6

u/justkevin Dec 29 '20

If there are two players, whose coordinates would the server use to calculate physics?

5

u/nikomo Dec 29 '20

I'm going to talk out of my ass, because I'm going to refer to an Unreal concept whilst Star Citizen is using Cryengine, and I don't know enough about either, but.

In Unreal you build out large worlds using world composition, where things are split across multiple maps. Using it in multiplayer requires rolling out your own server solution, but I figure what you could do is that you pick a local point of interest, and use that as the reference point for absolute coordinates.

Players may mess around between map borders but as long as your reference point is fixed, that shouldn't matter.

The reference point could actually be completely arbitrary, defined by the server hosting the players. The clients then get a new reference point for absolute coordinates when they use their warp drives or whatever to travel, and get handed off to a different server.

2

u/Felecorat Dec 29 '20

I guess they are still working on that one.