WheelCollider.motorTorque 电机力矩

var motorTorque : float

Description描述

Motor torque on the wheel axle. Positive or negative depending on direction.

在轮轴上的电机力矩。根据方向正或负。

To simulate brakes, do not use negative motor torque - use brakeTorque instead.

模拟刹车,不要使用电机力矩负值,使用brakeTorque代替。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public void Awake() {

		collider.motorTorque = 10;

	}

}
// spin the wheel forward

//使车轮转动向前

collider.motorTorque = 10;
Page last updated: 2010-12-22