Work around the physics problems for wilber and hexley kart
by changing the size of the physical model to be the same as the tuxkart. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1505 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
10f0a74203
commit
4708d07c4d
13
src/kart.cpp
13
src/kart.cpp
@ -175,6 +175,19 @@ void Kart::createPhysics(ssgEntity *obj)
|
||||
// ssgEntity *model = getModel();
|
||||
float x_min, x_max, y_min, y_max, z_min, z_max;
|
||||
MinMax(obj, &x_min, &x_max, &y_min, &y_max, &z_min, &z_max);
|
||||
if(getName()=="Hexley" || getName()=="Wilber")
|
||||
{
|
||||
// These kart models are too small, so we get problems with stability.
|
||||
// Till we find either better (bigger) models or improve their physics
|
||||
// parameters to become playable, we just adjust the size of their
|
||||
// physical models to be the same as the tuxkart model
|
||||
x_min=-0.473799;
|
||||
x_max= 0.486361;
|
||||
y_min=-0.772244;
|
||||
y_max= 0.739075;
|
||||
z_min= 0.002806;
|
||||
z_max= 0.701095;
|
||||
}
|
||||
float kart_width = x_max-x_min;
|
||||
m_kart_length = y_max-y_min;
|
||||
if(m_kart_length<1.2) m_kart_length=1.5f;
|
||||
|
Loading…
Reference in New Issue
Block a user