XPLMProbeInfo t

From X-Plane SDK
Jump to: navigation, search

XPLMProbeInfo_t

XPLMProbeInfo_t contains the results of a probe call. Make sure to set structSize to the size of the struct before using it.
typedef struct {
     int                       structSize;
Size of structure in bytes - always set this before calling the XPLM.
     float                     locationX;
Resulting X location of the terrain point we hit, in local OpenGL coordinates.
     float                     locationY;
Resulting Y location of the terrain point we hit, in local OpenGL coordinates.
     float                     locationZ;
Resulting Z location of the terrain point we hit, in local OpenGL coordinates.
     float                     normalX;
X component of the normal vector to the terrain we found.
     float                     normalY;
Y component of the normal vector to the terrain we found.
     float                     normalZ;
Z component of the normal vector to the terrain we found.
     float                     velocityX;
X component of the velocity vector of the terrain we found.
     float                     velocityY;
Y component of the velocity vector of the terrain we found.
     float                     velocityZ;
Z component of the velocity vector of the terrain we found.
     int                       is_wet;
Tells if the surface we hit is water (otherwise it is land).
} XPLMProbeInfo_t;