WheelHit.forwardSlip 向前滑动
var forwardSlip : float
Description描述
Tire slip in the rolling direction. Acceleration slip is negative, braking slip is positive.
在滚动方向上的滑动,加速滑动为负,制动滑动为正。
// Prints "braking slip!" when tire slips badly.// 当轮胎滑动时打印"Braking Slip!"function FixedUpdate() {var hit : WheelHit;var wheel : WheelCollider = GetComponent(WheelCollider);if( wheel.GetGroundHit( hit ) ) {if( hit.forwardSlip > 0.5 )print ("braking slip!");}}