1、实现步骤加载完模型后实现构件移动函数代码:// 动画函数,每次刷新更新构件的位置的x值const animate = () => { step += 0.01; // 每次刷新,将步长增加0.01 componentObj.position.x = 200 * Math.sin(step); // 更新当前构件的位置的x的值 requestAnimationFrame(animate); // 浏览器每一帧刷新时执行的函数 view.render(); }下载完整代码:https://www.bos.xyz/demos/component_movement.html