用户:yee剑走天下查看:132 回复:4 评论:15 创建时间:2022-06-28T19:52:17
代码这里自取,记得改坐标~
console.clear();
world['onPlayerJoin'](({ entity }) => {
entity['player'].cameraMode = Box3CameraMode.FPS;
entity.player.spectator = true;
let donghua = entity['animate']([
{ position: [84, 11, 71], duration: 9 },
{ position: [100, 19, 71], duration: 0 }
], {
duration: 16 * 4.5,
direction: Box3AnimationDirection.NORMAL,
iterations: 1
})
donghua.onFinish(() => {
entity.player.cameraMode = Box3CameraMode.FOLLOW;
entity.player.spectator = false;
})
})
我是一剑~去岛三给我个关注吧~(什![]()
爱探险的可乐呀其实用player.animate可以更好得呈现,楼主可以去看一下
点赞0
评论
啥意思?还有entity.player.animate?
陋,如之何?
我能说我不懂啥意思吗()
好家伙,有个错别字,“得”改为“地”()()
有,你可以去了解一下
可是entity.player.animate就用不了position了()只能用cameraPosition()()()
就用它
az