Documentation

Unity Engine

Download Unity

Unity Engine

maxDistanceLimit

Maximum distance limit of this joint.
Read time 1 minuteLast updated 20 hours ago

Definition

public float maxDistanceLimit { get; set; }

Remarks

If the value set here crosses the opposite bound, the two are swapped so the lower bound stays at or below the upper bound; this is silent and never warns. When changing both bounds from script, set them together through the joint definition, otherwise the order of the two assignments can leave them swapped.