---
title: "init(mesh:bias:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/clothmeshshape/init(mesh:bias:)"
---

# init(mesh:bias:)

Creates a mesh shape from the given mesh resource and inflation bias.

## Declaration

```swift
init(mesh: ClothMeshResource, bias: Float)
```

## Parameters

- `mesh`: The mesh resource that the shape is based on.
- `bias`: The distance by which the vertices are extended outwards along their normals.
