Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

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

HingeJoint.useMotor

Switch to Manual
public bool useMotor;

Description

Enables the joint's motor. Disabled by default.

See Also: JointMotor

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