tolerance
The maximum allowed error between the current spring length and the length defined by SpringJoint.minDistance and SpringJoint.maxDistance.
阅读时间1 分钟最后更新于 1 个月前
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.