用户:+6%查看:4 回复:3 评论:4 创建时间:2023-01-18T10:53:07
怎样让模型旋转起来(请发代码)谢谢!
var entityRotation=world.querySelector("#螺旋桨");
setInterval(()=>{
entityRotation.meshOrientation.copy(entityRotation.meshOrientation.rotateY(Math.PI/180))
},1)//越小越快
这代码不是我的
点赞0
评论
龙皇斗罗士兵连连长var entityRotation=world.querySelector("#糖豆人-1");//模型名称 setInterval(async()=>{ entityRotation.meshOrientation.copy(entityRotation.meshOrientation.rotateY(Math.PI/180)) },10)
点赞0
评论