Manual     Reference     Scripting  
  
Scripting > Runtime Classes > Collision   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Attributes
  • Enumerations
  • History
  • Index
  • Collision
  • All Members
  • Variables
  • collider
  • contacts
  • gameObject
  • relativeVelocity
  • rigidbody
  • transform

Collision.transform  

var transform : Transform

Description

The Transform of the object we hit (Read Only).

If we collided against a collider with a Rigidbody, the transform will be the transform attached to the rigidbody. If we collided against a collider without a rigidbody, the transform will be the transform attached to the collider.