Hopefully Joerg won't mind ;) salvaging Adiumy by improving physics for tall karts

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9817 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2011-09-13 00:03:42 +00:00
parent 3426907c48
commit 222a7c2372

View File

@@ -238,6 +238,12 @@ void Kart::createPhysics()
float kart_length = getKartLength();
float kart_height = getKartHeight();
// improve physics for tall karts
if (kart_height > kart_length*0.6f)
{
kart_height = kart_length*0.6f;
}
btBoxShape *shape = new btBoxShape(btVector3(0.5f*kart_width,
0.5f*kart_height,
0.5f*kart_length));