Fixed incorrect heading computation for start position (causing stadium not to work).

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5191 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-04-13 01:36:50 +00:00
parent 39ffefab3f
commit a3ebfce506

View File

@ -169,7 +169,7 @@ btTransform Track::getStartTransform(unsigned int pos) const
: Vec3( (pos%2==0)?1.5f:-1.5f, 1.0f, -1.5f*pos-1.5f);
btTransform start;
start.setOrigin(orig);
start.setRotation(btQuaternion(btVector3(0, 0, 1),
start.setRotation(btQuaternion(btVector3(0, 1, 0),
pos<m_start_heading.size()
? DEGREE_TO_RAD*m_start_heading[pos]
: 0.0f ));