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.