WheelCollider.mass 质量


var mass : float

Description描述

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

车轮的质量。这个值必须大于0。

  • C#

  • JavaScript

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


,