Collision.transform 变换


var transform : Transform

Description描述

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

我们碰撞的物体的Transform(只读)。

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.

如果我们和一个带有刚体的碰撞器相碰,transform将是附加到刚体的transform;

如果我们和一个不带刚体的碰撞体相碰,transform将是附加到碰撞器的transform。


,