# SetDynamicFriction(int, float)

> Set the value of the dynamic friction for a specified contact point in this contact pair.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.PhysicsModule

```csharp
public void SetDynamicFriction(int i, float dynamicFriction)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Index of the contact point.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Dynamic friction coefficient.

### Remarks

Dynamic friction slows down bodies that are sliding over other bodies.

Normally, it is between 0 and 1.
