Documentation

Unity Engine

Unity Engine

target

The world-space position that is currently trying to be maintained.
Read time 1 minuteLast updated 17 days ago

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.