Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

JointLimits

struct in UnityEngine

/

Implemented in:UnityEngine.PhysicsModule

Description

JointLimits is used by the HingeJoint to limit the joints angle.

See Also: HingeJoint.

no example available in C#

Properties

bounceMinVelocityThe minimum impact velocity which will cause the joint to bounce.
bouncinessDetermines the size of the bounce when the joint hits it's limit. Also known as restitution.
contactDistanceDistance inside the limit value at which the limit will be considered to be active by the solver.
maxThe upper angular limit (in degrees) of the joint.
minThe lower angular limit (in degrees) of the joint.

Did you find this page useful? Please give it a rating: