JointLimits.min 最小

var min : float

Description描述

The lower limit of the joint. When the joint angle or position is below it,

the joint will excert forces to constrain it.

关节的下限。当关节角度或位置低于它时,该关节将使用力来约束它。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		hingeJoint.limits.min = 20;
	}
}
// Set the minimum hinge angle to be 20 degrees
//设置最小铰链角度为20度

hingeJoint.limits.min = 20;
Page last updated: 2011-1-27