<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothMeshResource/defaultTargetEdgeLength",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C12MeshResourceC23defaultTargetEdgeLengthSfvpZ"
  },
  "title" : "defaultTargetEdgeLength"
}
-->

# defaultTargetEdgeLength

Default target edge length for mesh generation.

```
static let defaultTargetEdgeLength: Float
```

## Discussion

It is convenient to have the same target edge length for all shapes,
since self-collision assumes similar edge lengths across the whole simulation.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)