【发布时间】:2020-11-11 14:22:26
【问题描述】:
我目前正在使用 A-Frame 中的动画混合器,并试图在播放特定动画时产生一个条件(例如 A、B、C 中的动画“B”)。
我对 Javascript 不熟悉,但我已经做了几次尝试:
if(character.getAttribute == character.getAttribute("animation-mixer", {clip: "B"}){
// Insert action here
}
if(character == character.setAttribute("animation-mixer", {clip: "B"})){
// Insert action here
};
if(character.getAttribute("animation-mixer") == {clip: "B"}){
// Insert action here
};
【问题讨论】:
标签: javascript animation three.js aframe