Contents

materialNames

The names of the body materials used by this cloth body.

Declaration

var materialNames: [String]

Discussion

The default material is used if no matching material name is present in ClothSimulationComponent.

The material of the cloth body determines different properties about the physical behavior of the body, like its resistance to being stretched or the friction it experiences when colliding.

Note, only the first material name is used.

See Also

Mapping the visual mesh