Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

JointLimits.maxBounce

public var maxBounce: float;

Description

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

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