Lv.1
逊啦
在 岛三如何交互开飞机(求代码) 中回复
console.clear()
const planes = []
world.onPlayerJoin(({ entity }) => {
const plane = world.createEntity({
mesh: 'mesh/飞机.vb',
collides: true,//碰撞
gravity: false,//重力
position: new Box3Vector3(喵, 喵, 喵),
meshScale: new Box3Vector3(0.02, 0.02, 0.02),
});
entity.plane = plane;
planes.push(plane)
entity.up = 0;
plane.speed = 3;
entity.player.cameraEntity = plane
entity.player.invisible = true;
entity.player.spectator = true;
});
world.onTick(({ tick }) => {
world.querySelectorAll('player').forEach((x) => {
drive(x, x.plane)
})
})
const plane_Quat = new Box3Quaternion(0, 0, 0, 1);
async function drive(entity, plane) {
if (entity.player.jumpButton == true) {
if (entity.up > -0.8) {
entity.up -= 0.1
}
} else if (entity.player.crouchButton == true) {
if (entity.up < 0.8) {
entity.up += 0.1
}
}
plane.meshOrientation = plane_Quat.rotateZ(entity.up).rotateY(Math.atan2(entity.player.facingDirection.z, entity.player.facingDirection.x) + Math.PI / 2)
plane.position.y += -entity.up;
plane.position.x += entity.player.facingDirection.x
plane.position.z += entity.player.facingDirection.z
}2021-12-19T19:46:53 点赞:0
在 每日一个建图小技巧:吃了蘑菇会变身?你也行 中回复
吉吉看看https://box3.fun/e/e5b3d45ad450e2cf10fa吧!我自推首页! 游戏名:战地风云 玩法:开局刷钱,一开始总共有一些分数(根据玩家数量而定),然后攒够钱买武器,买设施,通过战略占领领地,射击人,扣分,最先被扣分为0的人输 游戏武器多样,战术不变,地形深邃。来看看吧!
2021-12-20T19:06:05 点赞:0
在 额,找个师傅 中回复
456789 10都是十分的多余,我不考级,考级收费还泄露个人隐私,creeper照样没考级,为啥要会劫持(其实不就是在network里面加图片),为啥要会xss,这么邪恶的东西,我会也不会用,这是违法的!
2021-12-22T20:58:04 点赞:0