Hopefully fixed bug where camera hanged

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5577 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-06-28 00:39:45 +00:00
parent 9c4940abdb
commit ee514b08a7
2 changed files with 2 additions and 0 deletions
src

View File

@ -255,6 +255,7 @@ void Camera::computeNormalCameraPosition(Vec3 *wanted_position,
wanted_position->setX(-sin(angle_around));
wanted_position->setY( sin(angle_up) );
wanted_position->setZ(-cos(angle_around));
*wanted_position *= m_distance;
*wanted_position += *wanted_target;
} // computeNormalCameraPosition

View File

@ -31,6 +31,7 @@ Moveable::Moveable()
m_motion_state = 0;
m_mesh = NULL;
m_node = NULL;
m_heading = 0;
} // Moveable
//-----------------------------------------------------------------------------