mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 23:02:24 +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 {
|
||||
// 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) {
|
||||
absAltitude = 0.01f;
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ public:
|
|||
|
||||
protected:
|
||||
float _scale = 1000.0f; //Km
|
||||
double _earthRadius = 6360.0;
|
||||
float _earthRadius = 6360.0;
|
||||
|
||||
Quat _surfaceOrientation;
|
||||
|
||||
|
|
Loading…
Reference in a new issue