Fix nan errors when using VehicleBody

This commit is contained in:
Rafał Mikrut 2021-02-07 21:08:09 +01:00
parent 59125d689b
commit 1b8cbcf946

View file

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