Skip to content

API Interface ShapeCastHit2D

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Interface: ShapeCastHit2D

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

A 2D shape cast hit (ADR 0010: engine types only). distance is how far the shape travelled.

Properties

collider

collider: Collider2D;

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


distance

distance: number;

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


normal

normal: Vector2;

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


point

point: Vector2;

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

Clone this wiki locally