Fixed falling speed of kart (damping of linear velocity caused
the velocity to be too low). Since this would also affect kart handling (negatively), the damping is only removed when the kart is in the air. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12521 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
ec2ca8a2f8
commit
b972326c5b
@ -1524,10 +1524,6 @@
|
||||
RelativePath="..\..\states_screens\dialogs\select_challenge.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\states_screens\dialogs\story_mode_new.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\states_screens\dialogs\track_info_dialog.cpp"
|
||||
>
|
||||
|
@ -1061,6 +1061,15 @@ void Kart::update(float dt)
|
||||
// This one keeps the kart pointing "100% as launched" instead,
|
||||
// like in ski jump sports, too boring but also works.
|
||||
//m_body->setAngularVelocity(btVector3(0,0,0));
|
||||
// When the kart is jumping, linear damping reduces the falling speed
|
||||
// of a kart so much that it can appear to be in slow motion. So
|
||||
// disable linear damping if a kart is in the air
|
||||
m_body->setDamping(0, m_kart_properties->getChassisAngularDamping());
|
||||
}
|
||||
else
|
||||
{
|
||||
m_body->setDamping(m_kart_properties->getChassisLinearDamping(),
|
||||
m_kart_properties->getChassisAngularDamping());
|
||||
}
|
||||
|
||||
//m_wheel_rotation gives the rotation around the X-axis
|
||||
|
Loading…
Reference in New Issue
Block a user