WheelCollider.brakeTorque Manual     Reference     Scripting  
Scripting > Runtime Classes > WheelCollider
WheelCollider.brakeTorque

var brakeTorque : float

Description

Brake torque. Must be positive.

JavaScripts
// brake the wheel

collider.brakeTorque = 1000;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
collider.brakeTorque = 1000;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
collider.brakeTorque = 1000