TriggerEvent
Defined in: physics/src/types.ts:416
Trigger event data passed to trigger handlers.
Properties
Section titled “Properties”entered
Section titled “entered”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
Section titled “otherCollider”otherCollider:
ColliderComponent
Defined in: physics/src/types.ts:420
The other entity’s collider component.
otherShapeIndex
Section titled “otherShapeIndex”otherShapeIndex:
number
Defined in: physics/src/types.ts:424
Index of the other participating shape in its collider component.
selfShapeIndex
Section titled “selfShapeIndex”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.