Show / Hide Table of Contents

Class Collision2D

Inheritance
Object
Collision2D
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public class Collision2D

Properties

| Improve this Doc View Source

collider

Declaration
public Collider2D collider { get; }
Property Value
Type Description
Collider2D
| Improve this Doc View Source

contactCount

Declaration
public int contactCount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

contacts

Declaration
public ContactPoint2D[] contacts { get; }
Property Value
Type Description
ContactPoint2D[]
| Improve this Doc View Source

enabled

Declaration
public bool enabled { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

gameObject

Declaration
public GameObject gameObject { get; }
Property Value
Type Description
GameObject
| Improve this Doc View Source

otherCollider

Declaration
public Collider2D otherCollider { get; }
Property Value
Type Description
Collider2D
| Improve this Doc View Source

otherRigidbody

Declaration
public Rigidbody2D otherRigidbody { get; }
Property Value
Type Description
Rigidbody2D
| Improve this Doc View Source

relativeVelocity

Declaration
public Vector2 relativeVelocity { get; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

rigidbody

Declaration
public Rigidbody2D rigidbody { get; }
Property Value
Type Description
Rigidbody2D
| Improve this Doc View Source

transform

Declaration
public Transform transform { get; }
Property Value
Type Description
Transform

Methods

| Improve this Doc View Source

GetContact(Int32)

Declaration
public ContactPoint2D GetContact(int index)
Parameters
Type Name Description
Int32 index
Returns
Type Description
ContactPoint2D
| Improve this Doc View Source

GetContacts(ContactPoint2D[])

Declaration
public int GetContacts(ContactPoint2D[] contacts)
Parameters
Type Name Description
ContactPoint2D[] contacts
Returns
Type Description
Int32

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX