Game co-ordinate system

Started by
6 comments, last by stodge 21 years, 6 months ago
I know this is probably a very far fetched question, but would a co-ordinate system represented using floats be big enough to map say the United Kindgom? Thanks!
---------------------http://www.stodge.net
Advertisement
Yeah, I have a coordinate system that maps an entire planet with the surface area around the same as the area of the United States.
That can only be properly answered if you say what kind of resolution and precision your map needs.

[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost | Asking Questions | Organising code files | My stuff ]
Depends on how high detail you want on your map

-Luctus
-LuctusIn the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move - Douglas Adams
Edit: double post.

[edited by - stodge on October 15, 2002 5:42:33 PM]
---------------------http://www.stodge.net
I''m not sure what precision I need; I want to model down to individual player level, who will be walking around towns and villages. So I guess real-world precision.
---------------------http://www.stodge.net
Real world precision is actually infinite.... I assume that you mean centimeters then, since players moving in meter jumps would look a little weird. Well... cant see it being done with one variable. Oh Im sure theres a way, but I expect you''ll have to find a way to get extra space by combining two floats or something. OK I got no idea how, but thats probrably the sort of thing Id look at.

Alternatively, couldnt you section the globe into sectors, and store the players current sector, and their relative position in that sector

-----

Oops just realised that you actually said just the UK... ah well, I still like the sector idea

- Ashley Oliver
Lead Programmer, Interplanitary Productions
"The finger of blame has turned upon itself"
I think that sectors are probably the way to go. All objects in each sector are referenced though local co-ordinates relative to that sector.
---------------------http://www.stodge.net

This topic is closed to new replies.

Advertisement