[]蒙皮动画挂点应用

我看代码及官网提及到的一些知识,管理员看看思路是不是这样的(实现挂点):
body = role.getChildAt(0).getChildAt(0) as SkinnedMeshSprite3D;
// animationNodeTemp.addChild(effect);
body.addComponent(SkinAnimations);
this.skinAnimation = body.getComponentByType(SkinAnimations) as SkinAnimations;
this.skinAnimation._initialize(body);
// var tempet:AnimationTemplet = new AnimationTemplet();

var tempet:AnimationTemplet = AnimationTemplet.load("res/LayaScene_body1/Assets/H5/body-idle1.lani");
// debugger
skinAnimation.templet = tempet
body.addComponent(AttachPoint);
attachPoint = body.getComponentByType(AttachPoint) as AttachPoint;
attachPoint.attachBones.push("Bip001 R Hand")
attachPoint._initialize(body)

最后通过取得attachPoint的矩阵,设置给挂载的元素?
还有这个AnimationTemplet的用法是不是这样,这样会没有解析数据,里面的数据是空的。
已邀请:

183*****755

赞同来自:

SkinnedMeshSprite3D 是 新版动画 的蒙皮网格节点,lani是新版动画文件。
但你所使用的方式可能是看以前社区开发者的使用方法。两者不匹配的。
新版动画出来后,我们已经不建议开发者继续使用老板动画,所以删除了所有老版本动画功能的使用示例。
新版动画的挂点问题,我们会随着周末的发版一起发布。

要回复问题请先

商务合作
商务合作