Bugfix: karts would rotate (around up axis) if they are on a steep uphill/downhill
part of a track. Reason was an incorrect axis in the upright constraint (see bug 3081113). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6218 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -107,7 +107,7 @@ btUprightConstraint::btUprightConstraint(const Kart* kart,
|
||||
m_limit[0].m_accumulatedImpulse = 0.0f;
|
||||
m_limit[1].m_accumulatedImpulse = 0.0f;
|
||||
m_limit[ 0 ].m_axis = btVector3( 1, 0, 0 );
|
||||
m_limit[ 1 ].m_axis = btVector3( 0, 1, 0 );
|
||||
m_limit[ 1 ].m_axis = btVector3( 0, 0, 1 );
|
||||
setLimit( SIMD_PI * 0.4f );
|
||||
} // btUprightConstraint
|
||||
|
||||
|
||||
Reference in New Issue
Block a user