Lower the chassis in relation to the wheels somewhat, making it
less likely for a kart to topple over. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2490 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
f3eb9b168e
commit
432b479433
@ -196,7 +196,10 @@ void KartModel::setDefaultPhysicsPosition(const Vec3 ¢er_shift,
|
|||||||
m_wheel_physics_position[i].setY( (0.5f*m_kart_length-wheel_radius)
|
m_wheel_physics_position[i].setY( (0.5f*m_kart_length-wheel_radius)
|
||||||
* ( (i<2) ? 1 : -1)
|
* ( (i<2) ? 1 : -1)
|
||||||
+center_shift.getY());
|
+center_shift.getY());
|
||||||
m_wheel_physics_position[i].setZ(0);
|
// Set the connection point so that a maximum compressed wheel
|
||||||
|
// (susp. length=0) will still poke a little bit out under the
|
||||||
|
// kart
|
||||||
|
m_wheel_physics_position[i].setZ(wheel_radius-0.05);
|
||||||
} // if physics position is not defined
|
} // if physics position is not defined
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user