maxDistanceLimit
Maximum distance limit of this joint.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
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.