autoDistance
When set, PhysicsDistanceJointDefinition.distance is recomputed at create from the world separation of the two anchors.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public bool autoDistance { readonly get; set; }
Remarks
It is measured after any PhysicsDistanceJointDefinition.autoAnchorA/PhysicsDistanceJointDefinition.autoAnchorB resolution, so it reflects the anchors actually used. It is applied at create only; the authored PhysicsDistanceJointDefinition.distance is ignored while this is set.