JointSpring.spring Manual     Reference     Scripting  
Scripting > Runtime Classes > JointSpring
JointSpring.spring

var spring : float

Description

The spring forces used to reach the target position

JavaScripts
hingeJoint.spring.spring = 10;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
hingeJoint.spring.spring = 10;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
hingeJoint.spring.spring = 10