Collision

class in UnityEngine

Cambiar al Manual

Descripción

Describe una colisión.

Collision information is passed to Collider.OnCollisionEnter, Collider.OnCollisionStay and Collider.OnCollisionExit events.

Note: The contact points are in world-space.

See Also: ContactPoint.

Variables

colliderEl Collider con el que chocamos (Read Only).
contactsThe contact points generated by the physics engine. You should avoid using this as it produces memory garbage. Use GetContact or GetContacts instead.
gameObjectThe GameObject whose collider you are colliding with. (Read Only).
impulseEl impulso total aplicado a este par de contacto para resolver la colisión.
relativeVelocityLa velocidad lineal relativa de los dos objetos que colisionan (Read Only).
rigidbodyEl Rigidbody con el que chocamos (Read Only). Toma valor null si el objeto con el que chocamos es un Collider sin un Rigidbody ligado a él.
transformEl Transform del objeto con el que chocamos (Read Only).