capsulecollider.height 胶囊碰撞器 高度

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

摘要: capsulecollider.height 高度varheight: floatdescription描述the height of the capsule meased in the object's local space.胶囊的高度,基于物体的自身空间。the capsule's height will be scaled by the transf ...

capsulecollider.height 高度

varheight: float

description描述

the height of the capsule meased in the object's local space.

胶囊的高度,基于物体的自身空间。

the capsule's height will be scaled by the transform's scale. note that the height is the actual height including the half-spheres at each end.

如果修改变换的缩放,那么胶囊的高度也将改变。注意,高度指实际的高度,包含两端的半球。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

collider.height = 5;

}

}

collider.height = 5;

相关阅读

文章点评
相关文章