Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


distance

The desired distance constraint i.e. the rest length of this joint. This has a lower stable limit of just above zero.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public float distance { readonly get; set; }