JointLimits.max 最大

var max : float

Description描述

The upper limit of the joint. When the joint angle or position is above it,

the joint will excert forces to constrain it.

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

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		hingeJoint.limits.max = 40;
	}
}
hingeJoint.limits.max = 40;
Page last updated: 2011-1-27