Corrected orientation of aeroplane and direction of rotation around earth.
This commit is contained in:
parent
8eb0e8ca88
commit
1791f7c6b9
@ -109,11 +109,13 @@ public:
|
|||||||
_latitude(0.0),
|
_latitude(0.0),
|
||||||
_longitude(0.0),
|
_longitude(0.0),
|
||||||
_height(100000.0)
|
_height(100000.0)
|
||||||
{}
|
{
|
||||||
|
_rotation.makeRotate(osg::DegreesToRadians(90.0),0.0,0.0,1.0);
|
||||||
|
}
|
||||||
|
|
||||||
void updateParameters()
|
void updateParameters()
|
||||||
{
|
{
|
||||||
_latitude -= ((2.0*osg::PI)/360.0)/20.0;
|
_longitude += ((2.0*osg::PI)/360.0)/20.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user