From befa2394a8a0e4c2b153d4bfd0aa2e479d2bc787 Mon Sep 17 00:00:00 2001 From: Benau Date: Mon, 21 Nov 2016 11:58:46 +0800 Subject: [PATCH] Some improvement to #2667 --- src/karts/kart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index 2de9f1766..0fe705dc4 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -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());