Version: 2017.3
public float forwardSlip ;

描述

滚动方向的轮胎打滑。加速打滑为负数,制动打滑为正数。

    // Prints "braking slip!" when tire slips badly.
    function FixedUpdate() {
        var hit : WheelHit;
        var wheel : WheelCollider = GetComponent.<WheelCollider>();
        if( wheel.GetGroundHit( hit ) ) {
            if( hit.forwardSlip > 0.5 )
                print ("braking slip!");
        }
    }