Bugfix: velocity in local coordinates was not sent, which could result

in the AI looping if the Z velocity was very high.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5400 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-05-07 01:48:24 +00:00
parent e0ed3291e0
commit 77c3995b5f

View File

@ -90,6 +90,7 @@ void Moveable::reset()
Vec3 up = getTrans().getBasis().getColumn(1);
m_pitch = atan2(up.getZ(), fabsf(up.getY()));
m_roll = atan2(up.getX(), up.getY());
m_velocityLC = Vec3(0, 0, 0);
} // reset