autoDistance
When set, _distance is recomputed at create from the world separation of the two anchors.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public bool autoDistance { readonly get; set; }
Remarks
It is measured after any _autoAnchorA/_autoAnchorB resolution, so it reflects the anchors actually used. It is applied at create only; the authored _distance is ignored while this is set.