Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseThe bounciness of the joint when hitting the lower limit of the joint.
// Set the joint to bounce off when hitting the lower limit var limits = hingeJoint.limits; limits.minBounce = 1; hingeJoint.limits = limits;
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { public JointLimits limits = hingeJoint.limits; void Example() { limits.minBounce = 1; hingeJoint.limits = limits; } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): public limits as JointLimits = hingeJoint.limits def Example() as void: limits.minBounce = 1 hingeJoint.limits = limits