Skip to content

API Interface PhysicsCollision

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

Interface: PhysicsCollision

Defined in: src/engine/core/Component.ts:137

What both physics plugins' collision hooks receive (Collision2D and Collision have these and more). Core names only the shared shape: physics lives in plugins (ADR 0135).

Properties

collider

readonly collider: Component;

Defined in: src/engine/core/Component.ts:139

The other collider.


gameObject

readonly gameObject: GameObject;

Defined in: src/engine/core/Component.ts:143

The other collider's owner node.


otherCollider

readonly otherCollider: Component;

Defined in: src/engine/core/Component.ts:141

This side's collider.


rigidbody

readonly rigidbody: Component | null;

Defined in: src/engine/core/Component.ts:144

Clone this wiki locally