Skip to content

Interface: Collision2D ​

One side's view of a touching pair (OnCollisionEnter2D / Stay / Exit). collider is the receiving entity's collider (or, on a Rigidbody2D's entity, the collider of its body that touched), otherCollider the one it touched.

Properties ​

PropertyTypeDescription
colliderCollider2DComponent-
contactsContactPoint2D[]-
normalXnumberUnit normal pointing from the other collider towards this one (up, for something landing on the ground).
normalYnumber-
otherEntityThe other collider's entity.
otherColliderCollider2DComponent-
otherRigidbodyRigidbody2DComponent | null-
relativeVelocityXnumberThis body's velocity minus the other's at the first contact point (px/s) — its length is the impact speed.
relativeVelocityYnumber-
rigidbodyRigidbody2DComponent | null-

© 2026 PlayAdGentic