Fixed 'flying' problem in new mine track when driving into the water.
I have to confirm with bullet developers why this only happens sometimes. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12513 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -251,6 +251,7 @@ btScalar btKart::rayCast(btWheelInfo& wheel)
|
||||
param = rayResults.m_distFraction;
|
||||
depth = raylen * rayResults.m_distFraction;
|
||||
wheel.m_raycastInfo.m_contactNormalWS = rayResults.m_hitNormalInWorld;
|
||||
wheel.m_raycastInfo.m_contactNormalWS.normalize();
|
||||
wheel.m_raycastInfo.m_isInContact = true;
|
||||
///@todo for driving on dynamic/movable objects!;
|
||||
wheel.m_raycastInfo.m_groundObject = &getFixedBody();
|
||||
|
||||
Reference in New Issue
Block a user