made bowling ball speed proportional to own speed so you can't catch up with a ball you've thrown yourself

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2609 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2008-12-11 02:23:34 +00:00
parent eaa9ceee1d
commit 665a307675

View File

@ -43,7 +43,7 @@ Bowling::Bowling(Kart *kart) : Flyable(kart, POWERUP_BOWLING, 50.0f /* mass */)
/* make it go faster when throwing forward
so the player doesn't catch up with the ball
and explode by touching it */
m_speed *= 3;
m_speed = kart->getSpeed() + m_speed;
}
createPhysics(y_offset, btVector3(0.0f, m_speed*2, 0.0f),