Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

WheelCollider.sprungMass

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 var sprungMass: float;
public float sprungMass;

Description

The mass supported by this WheelCollider.

Vehicle simulation uses the sprung mass model where it would decompose the full mass of the car supported by all wheels at once into a set of sprung masses supported by each individual wheel. Then it would work out all the suspension and tire forces for each wheel-mass pair and, as the last step, it would integrate all forces applied to the vehicle's body. In the simplest case of a perfectly symmetric car with four wheels, all sprung masses would be equal to a quarter of the car's mass. This property is automatically computed based on the car's configuration.