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:
hikerstk
2013-02-18 06:19:39 +00:00
parent d9af2f9706
commit 50e033f9f4

View File

@@ -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();