Ref T709, avoid camera below ground if aircraft is on ground

This commit is contained in:
Klaus Basan
2019-08-11 17:22:28 +02:00
committed by Mat Sutcliffe
parent 55690b423f
commit 93bf6cb44c
2 changed files with 26 additions and 19 deletions

View File

@@ -139,9 +139,9 @@ namespace XSwiftBus
//! Camera
struct DeltaCameraPosition
{
double dx = 0.0;
double dy = 0.0;
double dz = 0.0;
double dxMeters = 0.0;
double dyMeters = 0.0;
double dzMeters = 0.0;
double headingDeg = 0.0;
double pitchDeg = 0.0;
bool isInitialized = false;
@@ -177,7 +177,8 @@ namespace XSwiftBus
std::string modelName;
std::string nightTextureMode;
bool hasSurfaces = false;
bool hasXpdr = false;
bool hasXpdr = false;
bool isOnGround = false;
char label[32] {};
CTerrainProbe terrainProbe;
XPMPPlaneSurfaces_t surfaces;