Bugfix: adding the radius to the raycast length was lost in
the branch. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10250 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
0c5125522d
commit
fd1871be6e
@ -201,7 +201,8 @@ btScalar btKart::rayCast(btWheelInfo& wheel)
|
||||
|
||||
btScalar depth = -1;
|
||||
|
||||
btScalar raylen = wheel.getSuspensionRestLength()+wheel.m_wheelsRadius;
|
||||
btScalar raylen = wheel.getSuspensionRestLength()+wheel.m_wheelsRadius
|
||||
+ wheel.m_maxSuspensionTravelCm*0.01f;
|
||||
|
||||
btVector3 rayvector = wheel.m_raycastInfo.m_wheelDirectionWS * (raylen);
|
||||
const btVector3& source = wheel.m_raycastInfo.m_hardPointWS;
|
||||
|
Loading…
Reference in New Issue
Block a user