Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

Collision2D

class in UnityEngine

Cambiar al Manual

Descripción

Información devuelta por una colisión en física 2D.

Variables

colliderThe incoming Collider2D involved in the collision.
contactsThe specific points of contact with the incoming Collider2D.
enabledWhether the collision was disabled or not.
gameObjectThe incoming GameObject involved in the collision.
relativeVelocityLa velocidad lineal relativa de los dos objetos que colisionan (Read Only).
rigidbodyThe incoming Rigidbody2D involved in the collision.
transformThe Transform of the incoming object involved in the collision.