Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


maxDistanceOnly

Whether to maintain a maximum distance only or not. If not then the absolute distance will be maintained instead.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public bool maxDistanceOnly { get; set; }

Remarks

When true, only the maximum distance is maintained. When false, the absolute distance is maintained.
Additional Resources: DistanceJoint2D.distance.