mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 14:29:13 +02:00
fix some float/double jumble
This commit is contained in:
parent
02d7aa30ab
commit
0ec7d3ded8
2 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ Mat4d EarthSunModel::evalWorldToGeoLocationMat(double longitude, double latitude
|
||||||
|
|
||||||
void EarthSunModel::updateWorldToSurface() const {
|
void EarthSunModel::updateWorldToSurface() const {
|
||||||
// Check if the final position is too close to the earth center ?
|
// Check if the final position is too close to the earth center ?
|
||||||
float absAltitude = _earthRadius + (double)_altitude;
|
float absAltitude = _earthRadius + _altitude;
|
||||||
if (absAltitude < 0.01f) {
|
if (absAltitude < 0.01f) {
|
||||||
absAltitude = 0.01f;
|
absAltitude = 0.01f;
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
float _scale = 1000.0f; //Km
|
float _scale = 1000.0f; //Km
|
||||||
double _earthRadius = 6360.0;
|
float _earthRadius = 6360.0;
|
||||||
|
|
||||||
Quat _surfaceOrientation;
|
Quat _surfaceOrientation;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue