Joint.breakTorque 断开力矩

var breakTorque : float

Description描述

The torque that needs to be applied for this joint to break.

需要应用给这个关节断开的力矩。

The torque might come from collisions with other objects, forces applied with rigidbody.AddTorque or from other joints.

参见: Joint.OnJointBreak

该力矩可能来自其他物体的碰撞,力被应用从rigidbody.AddTorque或来自其他关节。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		hingeJoint.breakTorque = 10;
		hingeJoint.breakTorque = Mathf.Infinity;
	}
}
// Makes the joint break when a torque larger than 10 is applied
//当一个力矩大于10时,是这个关节断开
hingeJoint.breakTorque = 10;
// Makes the joint unbreakable
//使该关节牢不可破
hingeJoint.breakTorque = Mathf.Infinity;
Page last updated: 2011-1-26