Skip to content

CollisionEvent

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

Collision event data passed to collision handlers.

optional contactNormal?: Vec2

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

Contact normal (only for started collisions).


optional contactPoint?: Vec2

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

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


other: Entity

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

The other entity involved in the collision.


otherCollider: ColliderComponent

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

The other entity’s collider component.


started: boolean

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

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