Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

HingeJoint.useSpring

Switch to Manual
public var useSpring: bool;

Description

Enables the joint's spring. Disabled by default.

See Also: JointSpring

Enabling the motor overrides the spring, given the spring was enabled. If the motor is again disabled the spring will be restored.