猫史档案馆


【代码岛3.0】吃 鸡 服 装!代码+体验!

用户:build_一只建筑师吖build_一只建筑师吖查看:3 回复:5 评论:3 创建时间:2020-07-27T21:31:08


center_image

酷吧~

代码如下:

//玩家进入地图就会背上一个小书包
//准备步骤:将一个名为***的模型添加到地图上,再删掉
world.onPlayerJoin(({ entity }) => {
    entity.player.addWearable({
        bodyPart: Box3BodyPart.TORSO,
        mesh: 'mesh/【旅行系列】背包.vb',
        orientation: new Box3Quaternion(0, 1, 0, 0).rotateY(Math.PI/1),
        scale: new Box3Vector3(0.5, 0.5, 0.5),
        offset: new Box3Vector3(0, 0, -0.45),
    });
});
world.onPlayerJoin(({ entity }) => {
    entity.player.addWearable({
        bodyPart: Box3BodyPart.TORSO,
        mesh: 'mesh/喵-18.vb',
        orientation: new Box3Quaternion(0, 1, 0, 0).rotateY(Math.PI/1),
        scale: new Box3Vector3(1, 1, 0.5),
        offset: new Box3Vector3(-0.5, 0, -0.1),
    });
});
world.onPlayerJoin(({ entity }) => {
    entity.player.addWearable({
        bodyPart: Box3BodyPart.TORSO,
        mesh: 'mesh/三级盔.vb',
        orientation: new Box3Quaternion(0, 1, 0, 0).rotateY(Math.PI/-2),
        scale: new Box3Vector3(1, 1, 1),
        offset: new Box3Vector3(-0.1, 1, 0.1),
    });
});

 

体验网址:

https://box3create.codemao.cn/games/5938f153b4fa5e91df00

 


回复

上一页1 页 / 共 1下一页
天鹰室长不会代码吖天鹰室长不会代码吖

sofa

点赞0


评论


build_一只建筑师吖build_一只建筑师吖

dd

点赞0


评论


指令者指令者

emotion_编程猫_点赞

点赞0


评论


TobylaiTobylai

兄弟…头盔似乎反了

点赞0


评论


TobylaiTobylai

而且torso不是头…不能随头运动

点赞0


评论