Show / Hide Table of Contents

Class Collision

Inheritance
Object
Collision
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 Collision

Properties

| Improve this Doc View Source

collider

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

contactCount

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

contacts

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

frictionForceSum

Declaration
[Obsolete("Will always return zero.", false)]
public Vector3 frictionForceSum { get; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

gameObject

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

impactForceSum

Declaration
[Obsolete("Use Collision.relativeVelocity instead.", false)]
public Vector3 impactForceSum { get; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

impulse

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

other

Declaration
[Obsolete("Please use Collision.rigidbody, Collision.transform or Collision.collider instead", false)]
public Component other { get; }
Property Value
Type Description
Component
| Improve this Doc View Source

relativeVelocity

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

rigidbody

Declaration
public Rigidbody rigidbody { get; }
Property Value
Type Description
Rigidbody
| 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 ContactPoint GetContact(int index)
Parameters
Type Name Description
Int32 index
Returns
Type Description
ContactPoint
| Improve this Doc View Source

GetContacts(ContactPoint[])

Declaration
public int GetContacts(ContactPoint[] contacts)
Parameters
Type Name Description
ContactPoint[] contacts
Returns
Type Description
Int32
| Improve this Doc View Source

GetEnumerator()

Declaration
public virtual IEnumerator GetEnumerator()
Returns
Type Description
IEnumerator

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