From c2ac55a44bd3c7a243658c71fe95c3baf7042465 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 30 Jan 2002 13:15:59 +0000 Subject: [PATCH] Fixed the rotation direction of the POINT_ROT_* modes, this was broken by earlier fixes to the osg::Matrix. --- src/osg/Billboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/Billboard.cpp b/src/osg/Billboard.cpp index a543ccf6e..03b55f747 100644 --- a/src/osg/Billboard.cpp +++ b/src/osg/Billboard.cpp @@ -209,7 +209,7 @@ void Billboard::calcTransform(const Vec3& eye_local, const Vec3& /*up_local*/, c cp /= cp_len; float rotation_cp = acosf(dot); - mat.makeRotate(inRadians(rotation_cp),cp[0],cp[1],cp[2]); + mat.makeRotate(-inRadians(rotation_cp),cp[0],cp[1],cp[2]); } } break;