# JointLimits

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

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.PhysicsModule

```csharp
public struct JointLimits
```

## Remarks

Additional Resources: [HingeJoint](/engine/6000.7/script-reference/unityengine/hingejoint.md)

## Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        // Set the hinge limits for a door.
        HingeJoint hinge = GetComponent<HingeJoint>();

        JointLimits limits = hinge.limits;
        limits.min = 0;
        limits.max = 90;
        limits.bounciness = 0;
        limits.bounceMinVelocity = 0;
        hinge.limits = limits;
    }
}
```

## Properties

| Property                                                                                          | Description                                                                                       |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| [bounceMinVelocity](/engine/6000.7/script-reference/unityengine/jointlimits/bounceminvelocity.md) | The minimum impact velocity which will cause the joint to bounce.                                 |
| [bounciness](/engine/6000.7/script-reference/unityengine/jointlimits/bounciness.md)               | Determines the size of the bounce when the joint hits it's limit. Also known as restitution.      |
| [contactDistance](/engine/6000.7/script-reference/unityengine/jointlimits/contactdistance.md)     | Distance inside the limit value at which the limit will be considered to be active by the solver. |
| [max](/engine/6000.7/script-reference/unityengine/jointlimits/max.md)                             | The upper angular limit (in degrees) of the joint.                                                |
| [min](/engine/6000.7/script-reference/unityengine/jointlimits/min.md)                             | The lower angular limit (in degrees) of the joint.                                                |
