
Lv.1
屑鹿的小号
签名:kitten=整活 BOX3=创作 搓圆代码制作中()
在 帮个忙呗... 中回复
求求了嘛imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"
2022-06-26T16:42:44 点赞:0
在 某个旋转代码 中回复
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)
}
}2022-10-16T11:45:13 点赞:0