猫史档案馆


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

用户:查理九世1查理九世1查看:292 回复: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


评论

....