tolerance
The maximum allowed error between the current spring length and the length defined by SpringJoint.minDistance and SpringJoint.maxDistance.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
public float tolerance { get; set; }
Remarks
If the tolerance is set very high the solver might not run and the spring would effectively not exist.
If the tolerance is set close to zero very short spring lengths are possible, but at the increased cost of running the solver more often.