http://irrlicht.sourceforge.net/phpBB2/ ... hp?p=21314
He put it in Advanced help though. I'm now doing what calimero proposed at the end of that thread:
Niko, I guess you missed that one...calimero wrote: perhaps it is time to put this topic in the bug forum ?
It may have strong impact, it's strange nobody spot this one before.
Irrlicht 0.8:
In matrix4.h The old function:
Code: Select all
inline void matrix4::rotateVect( vector3df& vect ) const
{
vector3df tmp = vect;
vect.X = -(tmp.X*M[0] + tmp.Y*M[1] + tmp.Z*M[2]);
vect.Y = -(tmp.X*M[4] + tmp.Y*M[5] + tmp.Z*M[6]);
vect.Z = -(tmp.X*M[8] + tmp.Y*M[9] + tmp.Z*M[10]);
}
Code: Select all
inline void matrix4::rotateVect( vector3df& vect ) const
{
vector3df tmp = vect;
vect.X = tmp.X*M[0] + tmp.Y*M[4] + tmp.Z*M[8];
vect.Y = tmp.X*M[1] + tmp.Y*M[5] + tmp.Z*M[9];
vect.Z = tmp.X*M[2] + tmp.Y*M[6] + tmp.Z*M[10];
}