Docs / Fabric simulation

Glossary: FabricEffect.CoincidentContacts

The members of FabricEffect.CoincidentContacts, in alphabetical order.

Color legend plain property

Contacts between points that sat at the same spot with no history to tell them apart, which the solver pushed apart along an axis picked from their indices: a guess that can swap two layers.

A read-only record struct nested in FabricEffect, compared by value, returned by SampleCoincidentContacts. Its constructor takes PerStep and Total, in that order. Both read 0 unless the solver is compiled with FABRIC_COUNT_COINCIDENT defined, since the count costs an atomic in the innermost contact loop. Only cloth crushed hard gets there. 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

PerStep →

float · Read-only. Such contacts per step, over the steps since the last call.

Total →

long · Read-only. Such contacts since the sheet was uploaded.