charactercontroller.radius 半径

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

摘要: charactercontroller.radius 半径varradius: floatdescription描述the radius of the character's capsule角色胶囊体的半径。c#javascriptusing unityengine;using system.collections;public class example :monobe ...

charactercontroller.radius 半径

varradius: float

description描述

the radius of the character's capsule

角色胶囊体的半径。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public charactercontroller controller;

public void awake() {

controller = getcomponent();

controller.radius = 0.3f;

}

}

//设置控制器的半径为0.3

var controller : charactercontroller;

controller = getcomponent(charactercontroller);

controller.radius = 0.3;

相关阅读

文章点评
相关文章