Collision2D
class in UnityEngine · UnityEngine.Physics2DModule
In Tassix
A 2D collision as one side sees it: collider is the other object's collider, otherCollider the receiver's own.
Properties 10
Collider2D collider { get; }int contactCount { get; }ContactPoint2D[] contacts { get; }A new array of the contacts.
bool enabled { get; }GameObject gameObject { get; }Collider2D otherCollider { get; }Rigidbody2D? otherRigidbody { get; }Vector2 relativeVelocity { get; }Rigidbody2D? rigidbody { get; }Transform transform { get; }Methods 2
ContactPoint2D GetContact(int index)int GetContacts(ContactPoint2D[] contacts)int GetContacts(List<ContactPoint2D> contacts)