猫史档案馆


【神岛】一个用了之后就能让吉吉抛喵头的代码()

用户:ฅ智慧编程猫ฅ----(和平工作室室长)ฅ智慧编程猫ฅ----(和平工作室室长)查看:1 回复:2 评论:1 创建时间:2022-11-11T13:01:55


const doing=[

]  
iss=0
ii=0
for(i = 1.25;i<=5;i+=0.2){
    ii+=0.2
    doing.push({ bodyPart: Box3BodyPart.HEAD, mesh: 'mesh/吉吉 头.vb', offset: [0, i, ii], rotate: [0, 450, 0], scale: [0.5, 0.5,0.5] },)
}
iss=ii
for(is = i;is>=1.05;is-=0.2){
    iss-=0.2
    doing.push({ bodyPart: Box3BodyPart.HEAD, mesh: 'mesh/吉吉 头.vb', offset: [0, is, iss], rotate: [0, 450, 0], scale: [0.5, 0.5,0.5] },)
}
function addbody(entity,data){
    const headWears = entity.player.wearables(Box3BodyPart.HEAD); 
    entity.player.removeWearable(headWears[0]);

    const orientation = new Box3Quaternion(0, 0, 0, 1)
            .rotateZ(data.rotate[2] * Math.PI / 180) 
            .rotateX(data.rotate[0] * Math.PI / 180) 
            .rotateY(data.rotate[1] * Math.PI / 180) 
    entity.player.addWearable({
        bodyPart: data.bodyPart,
        mesh: data.mesh,
        orientation: orientation,
        offset: data.offset,
        scale:data.scale
    })
}

world.onPlayerJoin(async({ entity }) => {
    entity.player.skinInvisible['head'] = true;
    for(is=0;is<=100;is++){
        for (const data of doing) {
            addbody(entity,data)
            await sleep(80)
        }
    }
});

我还是搞不出贡菊那样不卡的()

注意:这帧动画有点卡,小心卡崩()()(emotion_doge


回复

上一页1 页 / 共 1下一页
ฅ智慧编程猫ฅ----(和平工作室室长)ฅ智慧编程猫ฅ----(和平工作室室长)

dddddd

点赞0


评论


盗码师盗码师

yee?

点赞0


评论