charactercontroller.slopelimit 坡度限制

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

摘要: charactercontroller.slopelimit 坡度限制varslopelimit: floatdescription描述the character controllers slope limit in degrees角色控制器的坡度度数限制。c#javascriptusing unityengine;using system.collectio ...

charactercontroller.slopelimit 坡度限制

varslopelimit: float

description描述

the character controllers slope limit in degrees

角色控制器的坡度度数限制。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public charactercontroller controller;

public void awake() {

controller = getcomponent();

controller.slopelimit = 45.0f;

}

}

// set the controller slope limit to 45.0 degrees

//设置控制器的坡度限制为45.0度

var controller : charactercontroller;

controller = getcomponent(charactercontroller);

controller.slopelimit = 45.0;

相关阅读

文章点评
相关文章