Color legend method
The finiteness guard for anything that reads positions back: a solver that has diverged fills the buffer with NaN, and a statistic that averages one in is worse than no statistic.
A static class, in the namespace BorrowedTorch.FabricSimulator.Diagnostics. The guard PenetrationCheck and CreaseCheck share, and the first thing to reach for in a check of your own over the array of FabricEffect.ReadBack. The diagnostics page shows it in context, with code.
Names are colored by what they are: a method; values and fields keep the plain color.
Methods
IsFinite() →
IsFinite(in Vector3 v) · Static. Returns bool: true when X, Y and Z are all finite, neither NaN nor infinite.
| Parameter | Type | Description |
|---|---|---|
v |
in Vector3 |
The vector to test, such as a particle’s Position. |