Class: Motion

Motion()

Cubismのモーションを表すオブジェクト

Constructor

new Motion()

Source:
Example
function start(){
    for(let motion of model.motions){
        console.log("Name",motion.name)
    }

    if(model.motions.length>0){
        let motion=model.motions[Math.floor(Math.random() * model.motions.length)];
        motion.start()
    }
}

Members

name :string

モーション名
Type:
  • string
Source:

Methods

start()

モーションを開始する
Source:

stop()

停止する
Source: