JointLimits.maxBounce 最大反弹力

var maxBounce : float

Description描述

The bounciness of the joint when hitting the upper limit of the joint.

当达到关节的上限时,关节的反弹力。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		hingeJoint.limits.maxBounce = 1;
	}
}
// Set the joint to bounce off when hitting the upper limit
//当达到上限时,设置关节的反弹力

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