init(mesh:bias:)
Creates a cloth collider component with a mesh shape built from the given mesh resource.
Declaration
init(mesh: ClothMeshResource, bias: Float)Parameters
- mesh:
Defines the mesh resource to use for the shape of the collider.
- bias:
The distance by which the mesh vertices are extended outwards along the direction of their normals.