Unit: Difference between revisions

m (1 revision: Imported from gtamodding.com - under GNU FDL)
m (renaming category,)
Line 28: Line 28:


==GTA3, GTAVC & GTASA==
==GTA3, GTAVC & GTASA==
The distance units in the 3D editions of Grand Theft Auto were standardized and based accurately on one meter.  Therefore, one unit in GTA3, GTAVC or GTASA equals one meter.  These "standard units" can use a floating point decimal but this inevitably lacks precision near the edges of the game boundaries.  Therefore, much like GTA1, a secondary coordinates system is introduced.  This uses "precision unit" which are each one sixteenth of a meter (6.25cm) and also allow decimals, creating a much more accurate coordinates system.
The distance units in the 3D editions of Grand Theft Auto were standardized and based accurately on one meter.  Therefore, one unit in GTA3, GTAVC or GTASA equals one meter.  These "standard units" can use a floating point decimal but this inevitably lacks precision near the edges of the game boundaries.  Therefore, much like GTA1, a secondary coordinates system is introduced.  This uses "precision unit" which are each one sixteenth of a meter (6.25 cm) and also allow decimals, creating a much more accurate coordinates system.


The size of the game environment in each edition is different and became larger with each edition:-
The size of the game environment in each edition is different and became larger with each edition:-
Line 52: Line 52:
These only seem to be used by AI paths to overcome the lack of precision when creating paths near the edges of the game environment.  They are measured from the exact same origin as standard units in the same directions and therefore require negative numbers to be used for some areas of the game environment.
These only seem to be used by AI paths to overcome the lack of precision when creating paths near the edges of the game environment.  They are measured from the exact same origin as standard units in the same directions and therefore require negative numbers to be used for some areas of the game environment.


Each precision unit is precisely on sixteenth of a metre (6.25cm) and decimals are allowed.  The maximum possible range for the type of number used is from -??? to ??? but this is limited to the size of the game environment for most purposes.  
Each precision unit is precisely on sixteenth of a metre (6.25 cm) and decimals are allowed.  The maximum possible range for the type of number used is from -??? to ??? but this is limited to the size of the game environment for most purposes.  


===Exceptions===
===Exceptions===
GTASA allows coordinates beyond the normal game environment to be used but there are limits on how they can be used. [[Mission script]]s allow a number of map objects to be placed beyond the boundaries.  The player can freely roam beyond the boundaries.  This is not a practical way to add extra land and islands to the game but it does allow extra possibilities for long distance mission scenarios.
GTASA allows coordinates beyond the normal game environment to be used but there are limits on how they can be used. [[Mission script]]s allow a number of map objects to be placed beyond the boundaries.  The player can freely roam beyond the boundaries.  This is not a practical way to add extra land and islands to the game but it does allow extra possibilities for long distance mission scenarios.


==External Links==
==External links==
* [http://projectcerbera.com/apps/coordstudio.html CoordStudio by Cerbera] - allows conversion between all units used by PC releases of Grand Theft Auto.
* [http://projectcerbera.com/apps/coordstudio.html CoordStudio by Cerbera] - allows conversion between all units used by PC releases of Grand Theft Auto.


[[Category:Map Formats]][[Category:Mission Script]][[Category:GTA 1]][[Category:GTA 2]][[Category:GTA 3]][[Category:GTA VC]][[Category:GTA SA]]{{fdl}}
[[Category:Map Formats]][[Category:Mission Script]][[Category:GTA 1]][[Category:GTA 2]][[Category:GTA III Modifications]][[Category:GTA VC]][[Category:GTA SA]]{{fdl}}