ドキュメント

Unity Engine

Unity Engine

target

The world-space position that is currently trying to be maintained.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

Remarks

The joint constantly attempts to move the Rigidbody2D to the target. The target is defined by both the RelativeJoint2D.linearOffset and RelativeJoint2D.angularOffset to the ::Joint2D::connectedBody.
Additional Resources: RelativeJoint2D.linearOffset, RelativeJoint2D.angularOffset, ::Joint2D::connectedBody.