Documentation

Unity Engine

Download Unity

Unity Engine

anchor

The local-space anchor on the rigid-body the joint is attached to.
Read time 1 minuteLast updated 2 months ago

Definition

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

Remarks

The local-space anchor position is where the joint will apply forces to move the body to the specified
target
position.