Joint.breakForce 断开力
var breakForce : float
Description描述
The force that needs to be applied for this joint to break.
需要应用给这个关节断开的力。
The force might come from collisions with other objects, forces applied with rigidbody.AddTorque or from other joints.
该力可能来自其他物体的碰撞,力被应用从rigidbody.AddTorque或来自其他关节。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
hingeJoint.breakForce = 10;
hingeJoint.breakForce = Mathf.Infinity;
}
}
// Makes the joint break when a force larger than 10 is applied
//当一个力大于10时,是这个关节断开
hingeJoint.breakForce = 10;
// Makes the joint unbreakable
//使该关节牢不可破
hingeJoint.breakForce = Mathf.Infinity;
最后修改:2011年1月26日 Wednesday 13:08