Back to search

Do the planet and the bottle share the same coordinate format?asked by Pitapa

TL;DRThe developer says coordinates use a nested zone system in which every entity, including planets, ships and stations, has coordinates relative to the zone host containing it, so world position is the accumulation of transforms up to the root zone.

Cloud Imperium

Our coordinates are implemented using a nested zone system where a zone host can be a celestial body, a ship, a transit car, or a space station. A zone host itself is an entity so has coordinates in the zone that host it, all the way up the tree until you hit the root zone which is the only zone host that contains itself (and never moves). As entities move through the game they will enter/exit various zones and their coordinate will update accordingly. If a zone host moves all the hosted entities "move" relative to it (though technically they don't move at all because their position is just relative). Really you can think of an entity existing in a tree of zone hosts in the world where it's absolute world position is the accumulation of the transforms of each zone host above it with its own position added at the end. We don't usually access t his world position in code as usually gameplay is local and therefor most often is dealt with in a single zone space.

Spectrum›Ask The Devs·
Published on this date.19 Oct 2020