9 角色动画函数

1 根据骨骼动画文件创建人物,骨骼动画文件在3DMAX中创建

            handle charaCreate(string name, string filename,
                float scale, string fieldPath)
        

name:人物名,filename:骨骼动画文件路径,scale:缩放比例,fieldPath:父节点路径,返回值:人物句柄

2 删除人物

            void charaDelete(handle h)
        

3 开始执行人物动作动画

            void charaStartAction(handle h, int index, bool loop)
        

index:骨骼文件中动画的编号,loop:是否循环播放

4 停止人物动作动画

            void charaStopAction(handle h, int index)
        

5 刷新人物的显示

            void charaUpdate(handle h, float delta_time)