Fix nan errors when using VehicleBody

(cherry picked from commit 1b8cbcf946)
This commit is contained in:
Rafał Mikrut 2021-02-07 21:08:09 +01:00 committed by Rémi Verschelde
parent 2261e738c2
commit 24d03afc9b
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -389,6 +389,7 @@ VehicleWheel::VehicleWheel() {
m_suspensionRelativeVelocity = 0;
m_clippedInvContactDotSuspension = 1.0;
m_raycastInfo.m_isInContact = false;
m_raycastInfo.m_suspensionLength = 0.0;
body = NULL;
}