Fixed incorrect pitch.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3463 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2009-05-04 12:23:48 +00:00
parent d50debb0e4
commit 9316d3ed28

View File

@ -111,9 +111,9 @@ void Vec3::setPitchRoll(const Vec3 &normal)
#ifdef HAVE_IRRLICHT
const core::vector3df Vec3::toIrrHPR() const
{
core::vector3df r(RAD_TO_DEGREE( getY()),
RAD_TO_DEGREE(-getX()),
RAD_TO_DEGREE(-getZ()) );
core::vector3df r(RAD_TO_DEGREE(-getY()), // pitch
RAD_TO_DEGREE(-getX()), // heading
RAD_TO_DEGREE(-getZ()) ); // roll
return r;
} // toIrrHPR