True Axis Physics SDK 1.2.0.1 Beta Documentation
www.trueaxis.com

float TA::CarTemplate::Wheel::GetSuspensionSpringConstant (  ) const [inline]
 

Call this function to get 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.
See also:
TA::CarTemplate::Wheel::GetSuspensionDampingConstant



© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.