(function(){ [].slice.call(document.querySelectorAll('#gwb-stage .orb')).forEach(function(a){a.setAttribute('href','/collections/redragon')}); var S=window.GWBS,mas=document.getElementById('gwb-mas'),cv=document.getElementById('gwb-cv'); if(!S||!cv)return; var V='0.160.0',U=['https://cdn.jsdelivr.net/gh/alihaider269/my-project@main/gwb-mascot/Bill_Redragon_Animated.glb','https://raw.githubusercontent.com/alihaider269/my-project/main/gwb-mascot/Bill_Redragon_Animated.glb']; function cl(v,a,b){return Math.max(a,Math.min(b,v))} async function get(){for(var i=0;i=S.W/2){var s=scr(aLn);wL=cl(Math.atan2(tx-s[0],ty-s[1]),.12,2.9);fLw=0}else{var s2=scr(aRn);wR=-cl(Math.atan2(s2[0]-tx,ty-s2[1]),.12,2.9);fRw=0} aL+=(wL-aL)*.08;aR+=(wR-aR)*.08;fL+=(fLw-fL)*.1;fR+=(fRw-fR)*.1; aLn.rotation.set(0,0,aL);aRn.rotation.set(0,0,aR);iL.rotation.set(0,0,fL);iR.rotation.set(0,0,fR); ren.render(sc,cam)}; mas.classList.add('rdy');S.on(0,S.W/2+1,S.H*.8); }catch(e){var cp=document.getElementById('gwb-cap');if(cp)cp.textContent='3D error: '+String(e&&e.message||e).slice(0,70);if(window.console)console.warn('GWB mascot 3D failed',e)}})(); })();