Skip to content

API Interface ControllerColliderHit

github-actions[bot] edited this page Nov 24, 2026 · 2 revisions

Interface: ControllerColliderHit

Defined in: src/plugins/physics/runtime/CharacterController.ts:13

Passed to onControllerColliderHit for each collider a CharacterController's move ran into.

Properties

collider

readonly collider: Collider;

Defined in: src/plugins/physics/runtime/CharacterController.ts:15


controller

readonly controller: CharacterController;

Defined in: src/plugins/physics/runtime/CharacterController.ts:14


gameObject

readonly gameObject: GameObject;

Defined in: src/plugins/physics/runtime/CharacterController.ts:16


moveDirection

readonly moveDirection: Vector3;

Defined in: src/plugins/physics/runtime/CharacterController.ts:23

The direction of the move that hit it (unit length).


moveLength

readonly moveLength: number;

Defined in: src/plugins/physics/runtime/CharacterController.ts:25

How far the move went before the hit.


normal

readonly normal: Vector3;

Defined in: src/plugins/physics/runtime/CharacterController.ts:21

Surface normal of the collider at the point, world space.


point

readonly point: Vector3;

Defined in: src/plugins/physics/runtime/CharacterController.ts:19

Contact point on the collider, world space.


rigidbody

readonly rigidbody: RigidBody | null;

Defined in: src/plugins/physics/runtime/CharacterController.ts:17

Clone this wiki locally