Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


target

The world-space position that is currently trying to be maintained.
Read time 1 minuteLast updated 4 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 _linearOffset and _angularOffset to the ::Joint2D::connectedBody.
Additional Resources: _linearOffset, _angularOffset