[]3D动画是如何进行控制播放的?
比如以下是官方蒙皮动画demo,假如一个模型上集成了各种动作的动画帧,打斗过程需要进行跳帧控制播放、循环播放、获得当前帧、添加帧标签等,都有方法的吗?
var skinMesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/dude/dude-him.lm")));
skinMesh.transform.localRotationEuler = new Laya.Vector3(0, 3.14, 0);
var skinAni = skinMesh.addComponent(Laya.SkinAnimations);
skinAni.templet = Laya.AnimationTemplet.load("../../res/threeDimen/skinModel/dude/dude-Take 001.lsani");
skinAni.player.play();
var skinMesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/dude/dude-him.lm")));
skinMesh.transform.localRotationEuler = new Laya.Vector3(0, 3.14, 0);
var skinAni = skinMesh.addComponent(Laya.SkinAnimations);
skinAni.templet = Laya.AnimationTemplet.load("../../res/threeDimen/skinModel/dude/dude-Take 001.lsani");
skinAni.player.play();
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
cuixueying
赞同来自: