HingeJoint.useLimits Manual     Reference     Scripting  
Scripting > Runtime Classes > HingeJoint
HingeJoint.useLimits

var useLimits : bool

Description

Enables the joint's limits.

JavaScripts
hingeJoint.useLimits = true;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
hingeJoint.useLimits = true;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
hingeJoint.useLimits = true