Fixed incorrect rotation at start position.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5047 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-03-23 10:39:39 +00:00
parent 2c29284522
commit 46dc95e3c3

View File

@ -89,6 +89,10 @@ void Moveable::reset()
Coord c(m_transform);
m_hpr.setHPR(m_transform.getRotation());
Vec3 up = getTrans().getBasis().getColumn(1);
m_pitch = atan2(up.getZ(), fabsf(up.getY()));
m_roll = atan2(up.getX(), up.getY());
} // reset
//-----------------------------------------------------------------------------