<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: 13.4.0 -",
    "macOS: 10.15.4 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhysicsMaterialResource/generate(staticFriction:dynamicFriction:restitution:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation23PhysicsMaterialResourceC8generate14staticFriction07dynamicH011restitutionACSf_S2ftFZ"
  },
  "title" : "generate(staticFriction:dynamicFriction:restitution:)"
}
-->

# generate(staticFriction:dynamicFriction:restitution:)

Creates a new material with the specified static friction, dynamic friction, and restitution.

```
@MainActor @preconcurrency static func generate(staticFriction: Float, dynamicFriction: Float, restitution: Float) -> PhysicsMaterialResource
```

## Parameters

`staticFriction`

The static (stationary) friction coefficient in the range [0, ∞).

`dynamicFriction`

The dynamic (moving) friction coefficient in the range [0, ∞).

`restitution`

The coefficient of restitution (bounciness) in the range [0, 1].

---

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)