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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user