Fixed incorrect 'release' behaviour when a cannon is used.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11178 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -67,8 +67,7 @@ CannonAnimation::~CannonAnimation()
|
||||
float epsilon = 0.5f * m_kart->getKartHeight();
|
||||
|
||||
btTransform pos;
|
||||
pos.setOrigin(m_kart->getXYZ()
|
||||
+btVector3(0, m_kart->getKartHeight() + epsilon, 0) );
|
||||
pos.setOrigin(m_kart->getXYZ());
|
||||
pos.setRotation(btQuaternion(btVector3(0.0f, 1.0f, 0.0f),
|
||||
m_kart->getHeading() ));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user