Contents

init(from:)

Creates a cloth mesh resource from a rendering mesh resource.

Declaration

@MainActor convenience init(from mesh: MeshResource) throws

Discussion

Generates a cloth mesh from a rendering mesh without remeshing. No remeshing is performed. In other words, the resulting ClothMeshResource will match exactly the original MeshResource.