# GetDriveForces(List<float>)

> Reads the entire hierarchy of Articulation Bodies and fills the supplied list of floats with Articulation Drive forces.

## Definition

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

```csharp
public int GetDriveForces(List<float> forces)
```

### Parameters

**** (\[List\<float>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): Supplied list of floats to store the drive force data.

### Returns

| Type                                                       | Description                                                                     |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Total degrees of freedom (DOF) for the entire hierarchy of Articulation Bodies. |

### Remarks

This returns Articulation Drive forces in the reduced coordinate space for the entire Articulation hierarchy starting from the root to the supplied list of floats. Every drive force DOF is represented by one float value. However, there might be zero, one or three DOFs per joint, depending on the type of the articulation joint. To find the exact location of the data in the resulting list for the specific Articulation Body, call [ArticulationBody.GetDofStartIndices](/engine/6000.7/script-reference/unityengine/articulationbody/getdofstartindices.md) and index the returned dofStartIndices list by the particular body index with [\_index](/engine/6000.7/script-reference/unityengine/articulationbody/index.md). To find the number of DOF for the Articulation Body, use [\_dofCount](/engine/6000.7/script-reference/unityengine/articulationbody/dofcount.md).

Additional Resources: [\_index](/engine/6000.7/script-reference/unityengine/articulationbody/index.md), [ArticulationBody.GetDofStartIndices](/engine/6000.7/script-reference/unityengine/articulationbody/getdofstartindices.md), [\_dofCount](/engine/6000.7/script-reference/unityengine/articulationbody/dofcount.md), [ArticulationBody.SetJointForces](/engine/6000.7/script-reference/unityengine/articulationbody/setjointforces.md)
