collision.transform 变换

2015-1-4 19:57| 发布者: 杨炎| 查看: 1614| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: collision.transform 变换vartransform:transformdescription描述thetransformof the object we hit (read only).我们碰撞的物体的transform(只读)。if we collided against a collider with arigidbody, the tran ...

collision.transform 变换

vartransform:transform

description描述

thetransformof the object we hit (read only).

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

if we collided against a collider with arigidbody, 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。

相关阅读

文章点评
相关文章