CollisionEvent
Defined in: physics/src/types.ts:86
Collision event data passed to collision handlers.
Properties
Section titled “Properties”contactNormal?
Section titled “contactNormal?”
optionalcontactNormal?:Vec2
Defined in: physics/src/types.ts:94
Contact normal (only for started collisions).
contactPoint?
Section titled “contactPoint?”
optionalcontactPoint?:Vec2
Defined in: physics/src/types.ts:96
Contact point in world pixels (only for started collisions).
other:
Entity
Defined in: physics/src/types.ts:88
The other entity involved in the collision.
otherCollider
Section titled “otherCollider”otherCollider:
ColliderComponent
Defined in: physics/src/types.ts:90
The other entity’s collider component.
started
Section titled “started”started:
boolean
Defined in: physics/src/types.ts:92
True if the collision just started, false if it ended.