JointLimits.maxBounce Manual     Reference     Scripting  
Scripting > Runtime Classes > JointLimits
JointLimits.maxBounce

var maxBounce : float

Description

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

JavaScripts
// Set the joint to bounce off when hitting the upper limit
hingeJoint.limits.maxBounce = 1;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
hingeJoint.limits.maxBounce = 1;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
hingeJoint.limits.maxBounce = 1