xiazeyu/live2d-widget.js

feat: add support for idle and mtn

Opened this issue · 0 comments

Migrated from EYHN/hexo-helper-live2d#43

提取到的一些模型含有久置动作,想把这些动作利用起来。
例如鼠标停留或移出浏览器窗口指定时间后触发

this.models[i].startRandomMotion(cDefine.MOTION_GROUP_PINCH_IN,
      cDefine.PRIORITY_NORMAL);
this.models[i].startRandomMotion(cDefine.MOTION_GROUP_PINCH_OUT,
      cDefine.PRIORITY_NORMAL);

// unused motion: flick_head
// unused motion: pinch_in
// unused motion: pinch_out
// unused motion: shake