Skip to content

API Interface ControllerColliderHit2D

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

Interface: ControllerColliderHit2D

Defined in: src/plugins/physics/runtime/CharacterController2D.ts:11

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

Properties

collider

readonly collider: Collider2D;

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


controller

readonly controller: CharacterController2D;

Defined in: src/plugins/physics/runtime/CharacterController2D.ts:12


gameObject

readonly gameObject: GameObject;

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


moveDirection

readonly moveDirection: Vector2;

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


moveLength

readonly moveLength: number;

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


normal

readonly normal: Vector2;

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


point

readonly point: Vector2;

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


rigidbody

readonly rigidbody: RigidBody2D | null;

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

Clone this wiki locally