summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-07 21:59:53 +0100
committerGitHub <noreply@github.com>2021-02-07 21:59:53 +0100
commit57c03a432a66a587b46fc879875f7c06f8644cb1 (patch)
treea163b2f5048fe47ea0f7399f9cf27045cdc72833 /scene/3d
parent790c87fee426afc8534ff8b2463d3aefabbdad95 (diff)
parent1b8cbcf94648b7baeb3def5464f6f67509081134 (diff)
Merge pull request #45803 from qarmin/unitialized_vehicle
Fix nan errors when using VehicleBody
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/vehicle_body_3d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/vehicle_body_3d.cpp b/scene/3d/vehicle_body_3d.cpp
index ec8a300653..0c51c4effd 100644
--- a/scene/3d/vehicle_body_3d.cpp
+++ b/scene/3d/vehicle_body_3d.cpp
@@ -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;
}