![]() |
VR-Forces Developer's Guide
|
VR-Forces uses coordinates for various purposes throughout the API, and they can be in various different coordinate systems. This section lays out the naming conventions used in the API for coordinates and how they relate to each other.
The main terms used are:
These terms are used in various functions and parameter names. For example:
World coordinates use an earth-centered-earth-fixed (ECEF) cartesian system. This system, also called geocentric coordinates, has its origin at Earth's center with axes:
This is the coordinate system used by DIS and RPR FOM network standards. API functions may refer to this system as either "geocentric" or "DIS" coordinates.
Local coordinates match the terrain database's native coordinate system. This system varies depending on the loaded terrain:
VR-Forces primarily stores and processes coordinates in this system for efficiency, avoiding frequent coordinate conversions when accessing terrain data. Some API components refer to these as "database" coordinates.
Relative coordinates are centered on a specific simulation object, useful for embarked entities or describing points on an object. The axes are:
This system is essential for:
Geodetic coordinates use latitude, longitude, and altitude. While VR-Forces can convert to and from this system, it:
Topographic coordinates (also called "topo" or ENU) provide a localized flat-earth approximation at a specific location with axes:
Key characteristics: