Docs / Fabric simulation

Glossary: FabricPinMode

The values of FabricPinMode.

The points pinned when a sheet is built; everything else falls freely.

An enum, in the namespace BorrowedTorch.FabricSimulator.Simulation: the type of PinMode, read at Rebuild, which pins these points and the ones in PinnedIndices as well. The top means the last row, HeightInParticles - 1, in either orientation: the top of a vertical sheet, the +Z edge of a horizontal one, and whichever edge that row ends up at after a Rotation. Left is the first column. SetPinned changes the pins of the live sheet. The placement and pins page shows it in context, with code.

Values

None →

  1. Nothing pinned: the sheet simply drops. With PinnedIndices, a fully custom set of pins.

TopEdge →

  1. The whole top row, like cloth tacked along a batten.

TopCorners →

  1. The two ends of the top row, like washing on a line.

LeftEdge →

  1. The whole first column, like a flag on its pole. The default of PinMode.

FourCorners →

  1. The two ends of the first row and of the top row, like a sheet stretched over a frame.