target
The world-space position that is currently trying to be maintained.
Read time 1 minuteLast updated 6 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.
Additional Resources: RelativeJoint2D.linearOffset, RelativeJoint2D.angularOffset, ::Joint2D::connectedBody.