From a8132ae245d686128192849103e605fa97adc055 Mon Sep 17 00:00:00 2001 From: auria Date: Tue, 30 Dec 2008 00:36:38 +0000 Subject: [PATCH] added FIXMEs in cake (reasons why it sometimes doesn't aim well) git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2814 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/items/cake.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/items/cake.cpp b/src/items/cake.cpp index ce707f746..2cf79d59e 100644 --- a/src/items/cake.cpp +++ b/src/items/cake.cpp @@ -59,6 +59,8 @@ Cake::Cake (Kart *kart) : Flyable(kart, POWERUP_CAKE) // calculate appropriate initial up velocity so that the // projectile lands on the aimed kart (9.8 is the gravity) + // FIXME - this approximation will be wrong if both karts' directions are not colinear + // FIXME - this approximation will be wrong if both karts' directions are not at the same height const float time = sqrt(kartDistSquared) / (m_speed - closest_kart->getSpeed()/1.2f); // division is an empirical estimation up_velocity = time*9.8f;