INNER CODE UNIT · JavaScript
animate
moshang-ax/lottery · product/src/lottery/index.js:458
function animate() {
// 让场景通过x轴或者y轴旋转
// rotate && (scene.rotation.y += 0.088);
requestAnimationFrame(animate);
TWEEN.update();
controls.update();
// 渲染循环
// render();
}
function render() {
renderer.render(scene, camera);
}
function selectCard(duration = 600) {
rotate = false;