用户:
小屑鹿查看:2 回复:4 评论:2 创建时间:2022-10-15T18:26:10
这传送门还不错:

小屑鹿async function rotateX(mesh,speed,direction){
const entity=world.querySelector(mesh)
while(1){
entity.meshOrientation=entity.meshOrientation.rotateX(Math.PI/100*direction)
await sleep(speed)
}
}
async function rotateY(mesh,speed,direction){
const entity=world.querySelector(mesh)
while(1){
entity.meshOrientation=entity.meshOrientation.rotateY(Math.PI/100*direction)
await sleep(speed)
}
}
async function rotateZ(mesh,speed,direction){
const entity=world.querySelector(mesh)
while(1){
entity.meshOrientation=entity.meshOrientation.rotateZ(Math.PI/100*direction)
await sleep(speed)
}
}点赞0
评论