charactercontroller.collisionflags 碰撞标识

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

摘要: charactercontroller.collisionflags 碰撞标识varcollisionflags:collisionflagsdescription描述what part of the capsule collided with the environment during the lastcharactercontroller.movecall.在最后的cha ...

charactercontroller.collisionflags 碰撞标识

varcollisionflags:collisionflags

description描述

what part of the capsule collided with the environment during the lastcharactercontroller.movecall.

在最后的charactercontroller.move调用期间,胶囊体的哪个部分与周围环境相碰撞。

c#

javascript

还没有添加代码

function update () {

var controller : charactercontroller = getcomponent(charactercontroller);

if ((controller.collisionflags & collisionflags.above) != 0)

print("touched the ceiling");

}

相关阅读

文章点评
相关文章