Version: 2019.2
LanguageEnglish
  • C#

WheelCollider.suspensionDistance

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public float suspensionDistance;

Description

Maximum extension distance of wheel suspension, measured in local space.

Suspension always extends downwards the local y-axis. Suspension travel will be scaled by the transform's scale. The value suspensionDistance is the distance that the wheel travels as it moves along the local up vector of the rigid body from the coordinate of the wheel center at maximum spring elongation to the coordinateof the wheel center at maximum spring compression. It is expressed in metres. The range of suspension travel will be scaled by the transform's scale.