Some improvement to #2667

This commit is contained in:
Benau 2016-11-21 11:58:46 +08:00
parent 72ff03c024
commit befa2394a8

View File

@ -2808,7 +2808,7 @@ void Kart::updateGraphics(float dt, const Vec3& offset_xyz,
{
const bool emergency = getKartAnimation() != NULL;
m_shadow->update(isOnGround() && !emergency,
m_terrain_info->getHoT() - getXYZ().getY()
getTrans().inverse()(m_terrain_info->getHitPoint()).getY()
- m_skidding->getGraphicalJumpOffset()
- m_graphical_y_offset
- m_kart_model->getLowestPoint());