How to visualize Hit.moveDirection ?

Hi!

I am new to Unity and i am actually reading a book of it. There something about OnControllerColliderHit i don’t understand about. Its the hit.moveDirection it say its the direction from the center of the capsule to the point we touch. But its hard to imagine it.

What that basically mean. Is hit.moveDirection.x and y the actual point of collission ?

Is hit.moveDirection.x and y the
actual point of collission ?

‘moveDirection’ is a direction vector. You can imagine it as a arrow that starts in the center of the capsule and points at the point of contact. If you want the point of contact, you can use ControllerColliderHit.point.