用户:
神界海神唐三查看:1 回复:2 评论:1 创建时间:2022-06-01T14:48:44
教教我吧@!!!!!
这个是@BOX.FUN的,试过了。如果第三视角放大会有BUG,只能第一视角
world.onPlayerJoin(async({entity})=>{
entity.player.cameraMode = Box3CameraMode.FPS
entity.num = entity.player.cameraFovY
})
world.onPress(async({button,entity})=>{
if(button == Box3ButtonType.ACTION1){
while(entity.player.action1Button){
entity.player.cameraFovY = 0.05
await sleep(50)
}
entity.player.cameraFovY = entity.num
}
})点赞0
评论