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

var useSpring : bool

Description

Enables the joint's spring.

JavaScripts
hingeJoint.useSpring = true;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
hingeJoint.useSpring = true