documented previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2808 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
6d2292f3c7
commit
56ea83e9ee
@ -56,7 +56,7 @@ Plunger::Plunger(Kart *kart) : Flyable(kart, POWERUP_PLUNGER)
|
|||||||
{
|
{
|
||||||
btVector3 closestKartLoc = closest_kart->getTrans().getOrigin();
|
btVector3 closestKartLoc = closest_kart->getTrans().getOrigin();
|
||||||
|
|
||||||
if(!m_reverse_mode)
|
if(!m_reverse_mode) // substracting speeds doesn't work backwards, since both speeds go in opposite directions
|
||||||
{
|
{
|
||||||
// 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 colinear
|
||||||
const float time = sqrt(kartDistSquared) / (m_speed - closest_kart->getSpeed());
|
const float time = sqrt(kartDistSquared) / (m_speed - closest_kart->getSpeed());
|
||||||
|
Loading…
Reference in New Issue
Block a user