Layabox displacement and rotation animation (turn)

Above code:

//两秒内位移和旋转动画
Laya.Tween.to(this.scene.getChildByName("Box").transform, {  
    localPositionZ : 0,
    localPositionX : 0,
    localPositionY : 0,
    localRotationX : 0,
    localRotationY : 0,
    localRotationZ : 0,
}, 2000,null,null,0,false);    

original:

layabox displacement and rotation animation_layabox character movement_chengchengbox's blog-CSDN

Guess you like

Origin blog.csdn.net/weixin_42565127/article/details/133795249