Color legend plain property
What one run of PenetrationCheck.Run measured: the pairs touching, the pairs gone through, and the deepest overlap.
A read-only record struct nested in PenetrationCheck, compared by value, with a constructor that takes Contacts, Penetrations and WorstOverlapRatio in that order. All zeros when nothing touches. The diagnostics page shows it in context, with code.
Names are colored by what they are: a property; values and fields keep the plain color.
Properties
Contacts →
int · Read-only. Pairs closer than the thickness, deep or not. Cloth lying on itself has plenty: layers at rest sit right at the thickness.
Penetrations →
int · Read-only. Pairs overlapping by more than DeepOverlapRatio of the thickness: one layer gone through another, which is what “the cloth passes through itself” means. The figure to watch.
WorstOverlapRatio →
float · Read-only. The deepest overlap, as a fraction of the thickness: 0 when nothing touches, 1 for two points at the same place.