Reset steering when calling reset in a kart, which results in more accurate

physics replays.
This commit is contained in:
hiker 2017-09-04 18:08:14 +10:00
parent 71978e2bb0
commit 416b93b0a1

View File

@ -377,6 +377,8 @@ void Kart::reset()
if(m_body)
m_body->setDamping(m_kart_properties->getStabilityChassisLinearDamping(),
m_kart_properties->getStabilityChassisAngularDamping());
for (unsigned int i = 0; i < 4; i++)
m_vehicle->getWheelInfo(i).m_steering = 0;
if(m_terrain_sound)
{