]> git.mxchange.org Git - simgear.git/commitdiff
Fix masked rotation so that it's clockwise from above.
authorStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Tue, 28 Feb 2012 21:05:54 +0000 (21:05 +0000)
committerStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Tue, 28 Feb 2012 21:05:54 +0000 (21:05 +0000)
simgear/scene/tgdb/obj.cxx

index d6c6369546be6e9e0d4d9b792dc1fb8d664caa7e..7ac2c4cab3013bcaef69e56dd7355c8bec936af9 100644 (file)
@@ -672,7 +672,7 @@ SGLoadBTG(const std::string& path, SGMaterialLib *matlib, bool use_random_object
 
           if (obj.model->get_heading_type() == SGMatModel::HEADING_MASK) {
             // Rotate the object around the z axis.
-            double hdg = obj.rotation * M_PI * 2;
+            double hdg =  - obj.rotation * M_PI * 2;
             transformMat.preMult(osg::Matrix::rotate(hdg,
                                                      osg::Vec3d(0.0, 0.0, 1.0)));
           }