Fixed the rotation direction of the POINT_ROT_* modes, this was broken by

earlier fixes to the osg::Matrix.
This commit is contained in:
Robert Osfield 2002-01-30 13:15:59 +00:00
parent 7b370fcb57
commit c2ac55a44b

View File

@ -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;