기술 자료

Unity Engine

Unity Engine

autoDistance

When set, PhysicsDistanceJointDefinition.distance is recomputed at create from the world separation of the two anchors.
읽는 시간 1분최근 업데이트: 25일 전

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.