文档

Unity Engine

Download Unity

Unity Engine

anchor

The local-space anchor on the rigid-body the joint is attached to.
阅读时间1 分钟最后更新于 2 个月前

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.