文档

Unity Engine

Unity Engine

useSpring

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

Definition

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

Remarks

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