文档

Unity Engine

Unity Engine

linearOffset

The current linear offset between the Rigidbody2D that the joint connects.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public Vector2 linearOffset { get; set; }

Remarks

The joint will attempt to maintain this linear offset between the connected Rigidbody2D using a maximum force specified by RelativeJoint2D.maxForce.