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.

JavaScript
collider.mass = 1;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
collider.mass = 1