猫史档案馆


怎么搞模型旋转一下的代码?

用户:查理九世1查理九世1查看:1 回复:2 评论:1 创建时间:2020-11-08T12:05:46


emotion_编程猫_谢谢老板

我只

center_image

(async function(){
    var angle=0;
    while(true){
        world.querySelectorAll(".旋转模型").forEach((entity)=>{
            entity.meshOrientation.x=Math.sin(angle*180/Math.PI);
            entity.meshOrientation.z=Math.cos(angle*180/Math.PI);
        })
        angle++;
        await sleep(100);
    }
})()


回复

上一页1 页 / 共 1下一页
传说云(已退)传说云(已退)

挖坟

点赞0


评论


艾博士艾博士

center_image

点赞0


评论