# moveLength

> How far the character has travelled until it hit the collider.

## Definition

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

```csharp
public float moveLength { get; }
```

### Remarks

Note that this can be different from what you pass to [CharacterController.Move](/engine/6000.0/script-reference/unityengine/charactercontroller/move.md), because the initial movement vector is decomposed into a set of movements, according to [CharacterController.stepOffset](/engine/6000.0/script-reference/unityengine/charactercontroller/stepoffset.md).

Additional Resources: [ControllerColliderHit.moveDirection](/engine/6000.0/script-reference/unityengine/controllercolliderhit/movedirection.md).

### Examples

```csharp
using UnityEngine;

public class ExampleClass : MonoBehaviour
{
    void OnControllerColliderHit(ControllerColliderHit hit)
    {
        Debug.Log(hit.moveLength);
    }
}
```
