diff options
author | Rafał Mikrut <mikrutrafal@protonmail.com> | 2021-02-07 21:08:09 +0100 |
---|---|---|
committer | Rafał Mikrut <mikrutrafal@protonmail.com> | 2021-02-07 21:08:09 +0100 |
commit | 1b8cbcf94648b7baeb3def5464f6f67509081134 (patch) | |
tree | 84c87141a493da92cc130b6dd2bc00d214343aaf | |
parent | 59125d689bb732951113c1378196e8fcaebd4814 (diff) |
Fix nan errors when using VehicleBody
-rw-r--r-- | scene/3d/vehicle_body_3d.cpp | 1 |
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; } |