format
typescript
ControllerColliderHit.moveLengthclass: ControllerColliderHit
description
(Read Only) The distance the character moved during the collision.
You can use this method to get the actual distance the character controller moved when colliding with an object, allowing you to perform operations such as collision detection and movement adjustments.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
number | The distance moved during the collision. |
