Class Collision
Assembly: UnityEngine.dll
Syntax
Properties
|
Improve this Doc
View Source
collider
Declaration
public Collider collider { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public int contactCount { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public ContactPoint[] contacts { get; }
Property Value
|
Improve this Doc
View Source
frictionForceSum
Declaration
[Obsolete("Will always return zero.", false)]
public Vector3 frictionForceSum { get; }
Property Value
|
Improve this Doc
View Source
gameObject
Declaration
public GameObject gameObject { get; }
Property Value
|
Improve this Doc
View Source
impactForceSum
Declaration
[Obsolete("Use Collision.relativeVelocity instead.", false)]
public Vector3 impactForceSum { get; }
Property Value
|
Improve this Doc
View Source
impulse
Declaration
public Vector3 impulse { get; }
Property Value
|
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
|
Improve this Doc
View Source
relativeVelocity
Declaration
public Vector3 relativeVelocity { get; }
Property Value
|
Improve this Doc
View Source
rigidbody
Declaration
public Rigidbody rigidbody { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public Transform transform { get; }
Property Value
Methods
|
Improve this Doc
View Source
Declaration
public ContactPoint GetContact(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
|
Improve this Doc
View Source
Declaration
public int GetContacts(ContactPoint[] contacts)
Parameters
Returns
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public virtual IEnumerator GetEnumerator()
Returns
Extension Methods