Skip to content

TriggerEvent

Defined in: physics/src/types.ts:416

Trigger event data passed to trigger handlers.

entered: boolean

Defined in: physics/src/types.ts:426

True if entering the trigger, false if leaving.


other: Entity

Defined in: physics/src/types.ts:418

The other entity involved in the trigger.


otherCollider: ColliderComponent

Defined in: physics/src/types.ts:420

The other entity’s collider component.


otherShapeIndex: number

Defined in: physics/src/types.ts:424

Index of the other participating shape in its collider component.


selfShapeIndex: number

Defined in: physics/src/types.ts:422

Index of this participating shape in its collider component.

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/physics.md.