用户:
森口_th查看:0 回复:1 评论:0 创建时间:2021-11-27T18:44:29
const mov = world.onTick(async()=>{
for(const e of world.querySelectorAll('.chicken')){
await move(e)
}
})
async function move(entity){
entity.velocity.y = 0.5 + Math.random()*0.5
entity.velocity.x = (Math.random()-0.5)*0.5
entity.velocity.z = (Math.random()-0.5)*0.5
await sleep(500)
}
谁知道怎么解决