文档

Unity Engine

Unity Engine

useMotor

Enables the joint's HingeJoint.motor. Disabled by default.
阅读时间1 分钟最后更新于 21 天前

Definition

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

Remarks

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