お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
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圧延方向のタイヤのスリップの値。加速スリップが負の場合、ブレーキスリップが正になります
// 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!"); } }