capsulecollider.radius 胶囊碰撞器 半径

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

摘要: capsulecollider.radius 半径varradius: floatdescription描述the radius of the sphere, measured in the object's local space.球体的半径,基于物体的自身坐标。the capsule's radius will be scaled by the tran ...

capsulecollider.radius 半径

varradius: float

description描述

the radius of the sphere, measured in the object's local space.

球体的半径,基于物体的自身坐标

the capsule's radius will be scaled by the transform's scale.

如果变换的缩放改变,那么胶囊的半径也将被缩放。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

collider.radius = 1;

}

}

collider.radius = 1;

相关阅读

文章点评
相关文章