Skip to content

Commit

Permalink
bugfix: vehicle wheels don't rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Sep 30, 2021
1 parent 1af07aa commit 1186c20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ void btRaycastVehicle::updateVehicle(btScalar step)
{
btWheelInfo& wheel = m_wheelInfo[i];
btVector3 location = wheel.m_worldTransform.getOrigin();// stephengold changed 2021-09-30
wheel.m_prevWorldLocation = location;// stephengold changed 2021-09-30

if (wheel.m_raycastInfo.m_isInContact)
{
Expand All @@ -325,6 +324,7 @@ void btRaycastVehicle::updateVehicle(btScalar step)
}
wheel.m_rotation += wheel.m_deltaRotation;// stephengold changed 2021-09-30
wheel.m_rotation = btNormalizeAngle(wheel.m_rotation);// stephengold changed 2021-09-30
wheel.m_prevWorldLocation = location;// stephengold changed 2021-09-30
}
}

Expand Down

0 comments on commit 1186c20

Please sign in to comment.