JointMotor.freeSpin 自由转动

var freeSpin : bool

Description描述

If freeSpin is enabled the motor will only accelerate but never slow down.

如果freeSpin被启用,该动力将只加速而不会减速。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		hingeJoint.motor.freeSpin = false;
	}
}
hingeJoint.motor.freeSpin = false;
Page last updated: 2011-1-27