Contents

init(positions:triangleIndices:)

Creates a cloth mesh resource from the given vertex positions and triangle indices.

Declaration

@MainActor convenience init(positions: [SIMD3<Float>], triangleIndices: [UInt32]) throws

Parameters

  • positions:

    Positions for the vertices of the mesh.

  • triangleIndices:

    Indices of the vertices forming the triangle primitives of the mesh.

See Also

Creating a cloth mesh