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:
parent
9c4940abdb
commit
ee514b08a7
src
@ -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
|
||||
|
@ -31,6 +31,7 @@ Moveable::Moveable()
|
||||
m_motion_state = 0;
|
||||
m_mesh = NULL;
|
||||
m_node = NULL;
|
||||
m_heading = 0;
|
||||
} // Moveable
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user