Fix uninitialized values in btKart

This commit is contained in:
Benau 2022-06-28 10:08:33 +08:00
parent 21d9b4bc70
commit 3a64cc9f6a

View File

@ -85,6 +85,7 @@ btWheelInfo& btKart::addWheel(const btVector3& connectionPointCS,
m_wheelInfo.push_back( btWheelInfo(ci));
btWheelInfo& wheel = m_wheelInfo[getNumWheels()-1];
memset(&wheel.m_raycastInfo, 0, sizeof(wheel.m_raycastInfo));
updateWheelTransformsWS(wheel, getChassisWorldTransform(), false);
updateWheelTransform(getNumWheels()-1,false);