Put Curt's cloud movement fix back in
This commit is contained in:
parent
3462e3b6c1
commit
a266790a25
@ -360,12 +360,9 @@ bool SGCloudLayer::reposition( sgVec3 p, sgVec3 up, double lon, double lat,
|
||||
Point3D dest( lon, lat, 0.0 );
|
||||
double course = 0.0, dist = 0.0;
|
||||
|
||||
if (dest != start) {
|
||||
calc_gc_course_dist( dest, start, &course, &dist );
|
||||
}
|
||||
// cout << "course = " << course << ", dist = " << dist << endl;
|
||||
|
||||
|
||||
// calculate cloud movement due to external forces
|
||||
double ax = 0.0, ay = 0.0, bx = 0.0, by = 0.0;
|
||||
|
||||
|
@ -35,6 +35,10 @@
|
||||
#include STL_STRING
|
||||
SG_USING_STD(string);
|
||||
|
||||
// #include <iostream>
|
||||
// SG_USING_STD(cout);
|
||||
// SG_USING_STD(endl);
|
||||
|
||||
|
||||
/**
|
||||
* A class layer to model a single cloud layer
|
||||
@ -119,7 +123,10 @@ public:
|
||||
* set the cloud movement direction
|
||||
* @param dir the cloud movement direction
|
||||
*/
|
||||
inline void setDirection(float dir) { direction = dir; }
|
||||
inline void setDirection(float dir) {
|
||||
// cout << "cloud dir = " << dir << endl;
|
||||
direction = dir;
|
||||
}
|
||||
|
||||
/** get the cloud movement direction */
|
||||
inline float getDirection() { return direction; }
|
||||
@ -128,7 +135,10 @@ public:
|
||||
* set the cloud movement speed
|
||||
* @param sp the cloud movement speed
|
||||
*/
|
||||
inline void setSpeed(float sp) { speed = sp; }
|
||||
inline void setSpeed(float sp) {
|
||||
// cout << "cloud speed = " << sp << endl;
|
||||
speed = sp;
|
||||
}
|
||||
|
||||
/** get the cloud movement speed */
|
||||
inline float getSpeed() { return speed; }
|
||||
|
Loading…
Reference in New Issue
Block a user