Call this function to set this wheel's suspension spring constant. This controls strength of the suspension for this wheel. The suspension force is calculated by a method similar to the one below:
float CalculateSuspensionForce(
const Wheel& wheel,
float fSuspensionCompressionDistance,
float fSuspensionMovementSpeed)
{
float fSuspensionForce =
wheel.fSuspensionSpringConstant * fSuspensionCompressionDistance +
wheel.fSuspensionDampingConstant * fSuspensionMovementSpeed;
return fSuspensionForce;
}
The default value is 40000.0f.