Skip to content

format

typescript
ControllerColliderHit.moveDirection

class: ControllerColliderHit

description

(Read Only) The direction in which the character controller moves when a collision occurs.

You can use this property to get the direction of movement during a collision, allowing you to perform operations such as collision detection and movement adjustment.

parameter

param_nametypedescription

reture

typedescription
Vector3The direction of movement.

code example