Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Removed in version 5.1.0p1
spring has been moved to SoftJointLimitSpring class in Unity 5

SoftJointLimit.spring

Switch to Manual
public var spring: float;

Description

If greater than zero, the limit is soft. The spring will pull the joint back.

{ 0, infinity }.