Fixed the rotation direction of the POINT_ROT_* modes, this was broken by
earlier fixes to the osg::Matrix.
This commit is contained in:
parent
7b370fcb57
commit
c2ac55a44b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user