Game Units
From NetRace
Game Units
We will be using a MKS system (meter, kilogram, second) for this game. Most of the libraries we will be using already follow this system (graphics, physics, sound) so there will be no need to make any conversions.
1 meter = 1 unit 1 meter = 3 feet 1 kilometer = 0.6 miles = 1000 units height of a man = 3 meters = 6 feet = 3 units
Units will be stored in floats. Keep in mind precision issues if you try to build something too big, or try to compare things too small.
For example, if you are standing at coordinate 25000 and want to see if your within a centimeter of something, you are comparing 25000.00 with 25000.01. A float's precision can't be that exact, so you may get erroneous results.
If we require this much precision with very large worlds, we may have to reconsider our units. I don't believe D3D has support for double precision units yet.
This applies to the other units as well. It's possible to get in trouble with time accuracy as well.
