Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


useMotor

Enables the joint's HingeJoint.motor. Disabled by default.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public bool useMotor { get; set; }

Remarks

Additional Resources: JointMotor
Enabling the motor overrides the HingeJoint.spring, given the spring was enabled. If the motor is again disabled the spring will be restored.