From: <hik...@us...> - 2010-11-25 23:18:52
|
Revision: 6733 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=6733&view=rev Author: hikerstk Date: 2010-11-25 23:18:46 +0000 (Thu, 25 Nov 2010) Log Message: ----------- Fixed incorrect axis (though it shouldn't matter, since the model is a ball anyway). Modified Paths: -------------- main/trunk/src/items/bowling.cpp Modified: main/trunk/src/items/bowling.cpp =================================================================== --- main/trunk/src/items/bowling.cpp 2010-11-25 22:25:57 UTC (rev 6732) +++ main/trunk/src/items/bowling.cpp 2010-11-25 23:18:46 UTC (rev 6733) @@ -30,7 +30,7 @@ Bowling::Bowling(Kart *kart) : Flyable(kart, PowerupManager::POWERUP_BOWLING, 50.0f /* mass */) { - float y_offset = 0.5f*kart->getKartLength() + m_extend.getY()/2.0f; + float y_offset = 0.5f*kart->getKartLength() + m_extend.getZ()*0.5f; // if the kart is looking backwards, release from the back if( kart->getControls().m_look_back ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |