Cloth

Capes that swing, flags that flap, sheets that drape. Put a Cloth under a mesh, pin one edge and press Play, or insert a Cape, Flag or Curtain preset.

A low granite plinth on a paved patio before a sunlit cream plaster wall, blue sky above, mid afternoon sun from the front left; the plinth is empty.
Before
The same frame with a red cloth banner hanging from a pine rod between two pine posts on the plinth, pinned along its top, a light breeze moving it into soft folds.
After

After: Cloth with Pin Top, Stiffness 0.9, Wind (1.5, 0, 4) and Turbulence 0.4.

A Cloth makes the MeshPart it sits under hang and move like cloth in Play and renders; Edit doesn't simulate. Vertices on its Pin side stay on the MeshPart, so weld the MeshPart to a body part and the cape follows it. The rest swings under gravity and Wind and collides with the parts around it; Stiffness and Bend set how it stretches and folds. Every run gives the same frames. Bake the DataModel to keep them.

Properties

NameTypeDefaultDescription
Bendnumber0.1
0 to 1
How it folds: 0 folds freely, 1 is like paper.
Dampingnumber0.1
0 to 10
Air drag on the cloth.
Enabledbooleantrue
Pin("Top" | "Bottom" | "Left" | "Right" | "Front" | "Back" | "None")Top
Top, Bottom, Left, Right, Front, Back, None
The side whose vertices stay on the MeshPart; weld the MeshPart to a body part and the cape follows it.
PinDepthnumber0.05
0 to 1
The depth of the pinned band on the Pin side, as a fraction of the part's size.
Stiffnessnumber0.9
0 to 1
How it stretches: at 1 it doesn't stretch at all.
Thicknessnumber0.05
0 to 10
How far it stays off the parts it collides with.
Turbulencenumber0
0 to 1
Deterministic gusts that push each face along its normal.
WindVector30, 0, 0Wind in studs per second, in world space, pushing each face along its normal.
Statusread-only textProperties window onlyAfter a Bake, says whether it plays the bake or needs a Free bake to simulate.

Methods

NameArgumentsReturnsDescription
UseClothSheet()booleanGives the MeshPart the built-in 32 x 32 Cloth sheet, turned and sized to lie as before; errors unless the Cloth is directly under a plain MeshPart.
From Instance 22