找回密碼
 注冊帳號

掃一掃,訪問微社區

bounds.bounds 邊界框

2015-1-3 18:57| 發布者: 楊炎| 查看: 1774| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: bounds.bounds 邊界框static functionbounds(center:vector3) : boundsdescription描述creates new bounds with a given center and total size. boundextentswill be half the given size.用給定的中心和總大小,創 ...

bounds.bounds 邊界框

static functionbounds(center:vector3) : bounds

description描述

creates new bounds with a given center and total size. boundextentswill be half the given size.

用給定的中心和總大小,創建一個新的邊界框。邊界框extents將是給定size的一半。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public bounds bounds = new bounds(vector3.zero, newvector3(1, 2, 1));

}

// create pillar bounding box centered at the origin

//在原點創建一個柱形邊界框

var bounds = bounds (vector3.zero,vector3(1, 2, 1));

相關閱讀

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