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

var mass : float

Description

The mass of the wheel. Must be larger than zero.

JavaScripts
collider.mass = 1;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
collider.mass = 1;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
collider.mass = 1