找回密码
 注册帐号

扫一扫,访问微社区

bounds.bounds 边界框

2015-1-3 18:57| 发布者: 杨炎| 查看: 1805| 评论: 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));

相关阅读

文章点评
相关文章