JointLimits.maxBounce 最大反弹力

var maxBounce : float


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