猫史档案馆


降维代码简单化(不存在抄袭)

用户:黑者开发黑者开发查看:0 回复:1 评论:0 创建时间:2022-05-21T16:48:10


world.onPlayerJoin(({ entity }) => {    const x = entity.player.x    entity.player.cameraMode = Box3CameraMode.RELATIVE //隐藏视角api    entity.player.cameraPosition = new Box3Vector3(x,12,18 ) /*x使视角移动,12从高12往下看,18离玩家距离(=1时 可以达到猛鬼宿舍的效果)    });通俗易懂 imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"   


回复

上一页1 页 / 共 1下一页
黑者开发黑者开发

world.onPlayerJoin(({ entity }) => {     const x = entity.player.x     entity.player.cameraMode = Box3CameraMode.RELATIVE     entity.player.cameraPosition = new Box3Vector3(x,12,18 )     });

点赞0


评论