Skip to content

API Interface ControllerColliderHit

github-actions[bot] edited this page Dec 1, 2026 · 2 revisions

Interface: ControllerColliderHit

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

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:16


controller

readonly controller: CharacterController;

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


gameObject

readonly gameObject: GameObject;

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


moveDirection

readonly moveDirection: Vector3;

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

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


moveLength

readonly moveLength: number;

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

How far the move went before the hit.


normal

readonly normal: Vector3;

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

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


point

readonly point: Vector3;

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

Contact point on the collider, world space.


rigidbody

readonly rigidbody: RigidBody | null;

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

Clone this wiki locally