From e4e3760b3d5ac05cec767d8f0221aba2ef62a508 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Tue, 28 Feb 2012 21:05:54 +0000 Subject: [PATCH] Fix masked rotation so that it's clockwise from above. --- simgear/scene/tgdb/obj.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/scene/tgdb/obj.cxx b/simgear/scene/tgdb/obj.cxx index d6c63695..7ac2c4ca 100644 --- a/simgear/scene/tgdb/obj.cxx +++ b/simgear/scene/tgdb/obj.cxx @@ -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))); } -- 2.39.5