用户:
天光现查看:0 回复:0 评论:0 创建时间:2022-10-22T11:18:18
world.onPlayerJoin(({ entity }) => { entity.player.enable3DCursor = true })
world.onPress(({ raycast, button }) => { if (button === Box3ButtonType.ACTION1) { const pos = raycast.voxelIndex.add(raycast.normal) voxels.setVoxel(pos.x, pos.y, pos.z, 'sand') } }) 有个bug,就是如果站着往脚底下放方块,是会被卡飞的,有什么解决办法吗 《distance》