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

var damper : float

Description

The damper force uses to dampen the spring

JavaScripts
hingeJoint.spring.damper = 3;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
hingeJoint.spring.damper = 3