Made the bird rotate a bit so that it is facing the kart
(note - that does not solve the bug that if the kart is not at heading 0 the bird will face the wrong direction). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9830 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
82197488b0
commit
6607e98ff5
@ -79,6 +79,11 @@ void Referee::init()
|
||||
node->get("scale", &m_st_scale );
|
||||
node->get("start-rotation", &m_st_start_rotation );
|
||||
|
||||
float angle_to_kart = atan2(m_st_start_offset.getY(),
|
||||
m_st_start_offset.getZ())
|
||||
* RAD_TO_DEGREE;
|
||||
m_st_start_rotation.setY(m_st_start_rotation.getY()-angle_to_kart);
|
||||
|
||||
std::vector<std::string> colors;
|
||||
node->get("colors", &colors);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user