Docs / Fabric simulation

Glossary: FabricEffect.StepMotion

The members of FabricEffect.StepMotion, in alphabetical order.

Color legend plain property

How close the sheet has come to outrunning its own collision tests: the furthest a point moved in one step, against the cloth’s thickness.

A read-only record struct nested in FabricEffect, compared by value, returned by SampleWorstStepMotion. Its constructor takes PeakRatio and FastParticleSteps, in that order. Contacts are tested where the points end a step, not along the path they took, so a point that moves further than the thickness in one step can pass through another layer with nothing able to see it, the solver or PenetrationCheck. Measured only while UseSelfCollision is on. 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

FastParticleSteps →

long · Read-only. How many particle-steps went past one thickness since the sheet was uploaded: one for each point, at each step, that moved further than SelfCollisionThickness.

PeakRatio →

float · Read-only. The furthest single-step move since the sheet was uploaded, in thicknesses, to a thousandth. Above 1, a layer can cross another unseen. The thickness is a fraction of the spacing, so a finer grid lowers the bar while gravity leaves the speeds alone: check it at the resolution you ship. Raising SolverFrequencyHz is the cheap fix: doubling it roughly halves the figure. It keeps its value until the next Rebuild.