BoxCollider.size 大小
var size : Vector3
Description描述
The size of the box, measured in the object's local space.
盒碰撞器的大小,相对于物体的自身坐标。
The box size will be scaled by the transform's scale
通过transform的缩放,盒的大小将被缩放。
// Make the box collider long
//修改盒碰撞器的长
collider.size = Vector3(10, 1, 1);
最后修改:2010年12月13日 Monday 23:10