找回密碼
 注冊帳號

掃一掃,訪問微社區

collision.transform 變換

2015-1-4 19:57| 發布者: 楊炎| 查看: 1880| 評論: 0|原作者: 蠻牛|來自: unity3d腳本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。

相關閱讀

文章點評
相關文章
女校游泳队彩金