Skip to content

CollisionEvent

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

Collision event data passed to collision handlers.

optional contactNormal?: Vec2

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

Contact normal (only for started collisions).


optional contactPoint?: Vec2

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

Contact point in world pixels (only for started collisions).


other: Entity

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

The other entity involved in the collision.


otherCollider: ColliderComponent

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

The other entity’s collider component.


started: boolean

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

True if the collision just started, false if it ended.