List of file formats: Difference between revisions

Jump to navigation Jump to search
OBJECT_SHARED lines - Edited for clarity and formatting.
(OBJECT_SHARED lines - Edited for clarity and formatting.)
Line 91: Line 91:
   OBJECT_SHARED <object-path> <longitude> <latitude> <elevation-m> <heading-deg> <pitch-deg> <roll-deg>
   OBJECT_SHARED <object-path> <longitude> <latitude> <elevation-m> <heading-deg> <pitch-deg> <roll-deg>


The <object-path> is relative to the data directory (FG_ROOT). <elevation-m> is in meter and relative to mean sea-level (in the fgfs world). <heading-deg> is in degree, counter-clockwise with North being 0.0. <pitch-deg> and <roll-deg> are in degree and optional. Note that this differs from about every other place in FlightGear, most notably the /orientation/heading-deg entry in the property system, which is clockwise. OBJECT_SHARED models are cached and reused. They are only once in memory and never freed. (See also the next section.)
* '''<object-path>''' is relative to the data directory (FG_ROOT).  
* '''<longitude>''' and '''<latitude>''' are in degrees using WGS-84 standard coordinate systems, available from most online-maps.
* '''<elevation-m>''' is in meter and relative to mean sea-level (in the fgfs world).  
* '''<heading-deg>''' is in degree, ''counter-clockwise'' with North being 0.0.  
* '''<pitch-deg>''' and '''<roll-deg>''' are in degree and optional.  
Note that this differs from about every other place in FlightGear, most notably the /orientation/heading-deg entry in the property system, which is normally increasing in the clockwise direction. OBJECT_SHARED models are cached and reused. They are only once in memory and never freed. (See also the next section.)


=== OBJECT_STATIC lines ===
=== OBJECT_STATIC lines ===
30

edits

Navigation menu