Skip to content

API Interface ControllerColliderHit2D

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

Interface: ControllerColliderHit2D

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

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


controller

readonly controller: CharacterController2D;

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


gameObject

readonly gameObject: GameObject;

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


moveDirection

readonly moveDirection: Vector2;

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


moveLength

readonly moveLength: number;

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


normal

readonly normal: Vector2;

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


point

readonly point: Vector2;

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


rigidbody

readonly rigidbody: RigidBody2D | null;

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

Clone this wiki locally