Version: 1.4
LanguageEnglish
  • C#

Collision.transform

public 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.


对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答